System.IO.FileLoadException with Novell's Novell.Directory.LDAP

F

Fabian Aichele

Hello!

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

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

Additional information is:
"Die Datei Novell.Directory.Ldap kann nicht geladen werden." meaning
"Can't load file Novell.Directory.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
"appropriate 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
 
D

Dmitriy Lapshin [C# / .NET MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top