DllNotFoundException when loading

  • Thread starter Thread starter mirek
  • Start date Start date
M

mirek

Hi,
I'm getting DllNotFoundException when I call my unmananaged code which
loads a dll ("rasapi32") in separate thread. If I don't call it from my
custom thread it works ok. I call it on ASP.NET page from managed
wrapper class.
Could someone tell mi what it is caused by? Thanks.

Regards,
mirek
 
Hi, mirek,

Did you try setting the full path to the dll in the attribute? Did you try
to invoke a function in a dll in the system32 folder just to check if it
makes any change?

Greetings
Martin
 
Martin said:
Hi, mirek,

Did you try setting the full path to the dll in the attribute? Did you try
to invoke a function in a dll in the system32 folder just to check if it
makes any change?

Yes, I checked but I found something strange: the LoadLibrary returns no
error but the exception is generated when I call the method from this
dll (obtained by GetProcAddress, and it is not NULL, so should be OK)

Regards,
mirek
 
Back
Top