473,808 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.IO.FileL oadException with Novell's Novell.Director y.LDAP

Hello!

When trying to use Novell's C# LDAP library (from
http://www.novell.com/coolsolutions/...rary_cdev.html)
the following exception occurs as soon as I try to instantiate an
object from the Novell.Director y.LDAP namespace:

"Eine nicht behandelte Ausnahme des Typs 'System.IO.File LoadException'
ist in system.windows. forms.dll aufgetreten."
meaning
"An unhandled exception with type 'System.IO.File LoadException'
occured in system.windows. forms.dll."
[...] 'System.IO.File LoadException' [...] in system.windows. forms.dll

Additional information is:
"Die Datei Novell.Director y.Ldap kann nicht geladen werden." meaning
"Can't load file Novell.Director y.Ldap."

I am using Visual Studio .Net 2002 Academic (German) with the .Net
Framework 1.1.
Novell's installation instructions only say to copy the dll to an
"appropriat e location" within the project; I manually copied the dll
into the folder where the project resides. Adding a reference to the
dll also worked without any error message.

Since I still am fairly new to C#, I'd appreciate any hint or pointer
on what I might have missed or forgotten.

Regards,
Fabian Aichele
Nov 16 '05 #1
1 3070
Hello Fabian,

You should either install this DLL to the GAC (given it has a strong name)
or copy it to the same folder your application *executable* (not project!)
resides in.
There are more advanced options but these are the simplest things you can
try to resolve your problem.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Fabian Aichele" <fa******@primu snetz.de> wrote in message
news:63******** *************** ***@posting.goo gle.com...
Hello!

When trying to use Novell's C# LDAP library (from
http://www.novell.com/coolsolutions/...rary_cdev.html) the following exception occurs as soon as I try to instantiate an
object from the Novell.Director y.LDAP namespace:

"Eine nicht behandelte Ausnahme des Typs 'System.IO.File LoadException'
ist in system.windows. forms.dll aufgetreten."
meaning
"An unhandled exception with type 'System.IO.File LoadException'
occured in system.windows. forms.dll."
[...] 'System.IO.File LoadException' [...] in system.windows. forms.dll

Additional information is:
"Die Datei Novell.Director y.Ldap kann nicht geladen werden." meaning
"Can't load file Novell.Director y.Ldap."

I am using Visual Studio .Net 2002 Academic (German) with the .Net
Framework 1.1.
Novell's installation instructions only say to copy the dll to an
"appropriat e location" within the project; I manually copied the dll
into the folder where the project resides. Adding a reference to the
dll also worked without any error message.

Since I still am fairly new to C#, I'd appreciate any hint or pointer
on what I might have missed or forgotten.

Regards,
Fabian Aichele


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3788
by: BrunoSilveira_BR | last post by:
Hi folks, I've tried to use the novell c# ldap library to connect to my unix ldap directory. But everytime i try to debug my application i receive the error message: "unable to load novell.directory.ldap library." I cant register this library in the gac, because it dont have a strong name. I already try to generate a strong name for the library, using the
0
1640
by: Tim | last post by:
Hello, I'm trying very (too) hard to log uses LDAP (via ADSI) to autheniticate users in an A2k2 application. We have AD and I have that working slick. We are in a tranistion from NDS to AD and I would like to get the NDS side working during the transition. I know the concept of what required Microsoft's information is very sparse and incomplete if not wrong.
12
9625
by: hykim | last post by:
Hello, everyone. according to MSDN, there is any constructor of System.DirectoryServices.SearchResultCollection Class. if I implement DirectorySearcher.FindAll() method by myself, then how can I instanciate SearchResultCollection Class. more clearly, a SearchResult object is created, at the inside of FindAll() method, then how can I put this object into the SearchResultCollection object. there is any method releated to input operation.
4
27945
by: m96 | last post by:
hi, i'm trying to make a query to a ldap server (version v2 or v3 doen't matter) with c#. the query works just fine but the problem is that i can't read the custom attributes/fields, since .net gives the following error: System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb). after googling for a long time i found out that many other have the same
5
2521
by: Elhanan | last post by:
hi.. i have a small csharp console application i'm running locally on a windows 2003 server, the files themselves are located on a novell server. when i try to run it and a call a method from applicationBlocks.ExceptionManagment i get "fileLoadException can not access the file becouse it is being used by another process" there are not other process using it as i copied the file to another
0
1218
by: Elhanan | last post by:
hi.. i'm using windows 2003 server as a develop machine with VS.NET 2003 all my source code and dll are on a network share on novell server. when i try to run a project which use microsoft exception blocks (that dll's are on the same path meaning also on novell) i get FileLoadException - can't access file being used by another process. (it's not i've copied the entire directory to a new location and it
3
2246
by: chat_devil | last post by:
hi, does anyone know if it is possible to remove an attribute that can not be read into the ADSI property cache/collection. i'm trying to do an eDirectory password change from .net directory services. eDirectory uses the "userPassword" property to change the password and for a normal user, this has to be deleted and then added to in one LDAP modify operation to successfully change the password. As far as i know eDirectory schema does...
18
3420
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found dozens of examples of how to authenticate users against Active Directory, but AD seems to be a different animal than Sun Java System Directory Server. Could someone provide me with an example of how to authenticate a user against a Directory...
4
2650
by: Brandon McCombs | last post by:
Hello, From my understanding, DirectoryEntry is used to connect to Active Directory. Although this makes no sense whatsoever I accept it. The problem is how am I supposed to test whether a connection is active or not if I can create a DirectoryEntry with whatever data I want since the data really isn't verified until I try to use it? I am not able to determine whether the connection is really going to be available until the Try {}...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.