DllNotFoundException

  • Thread starter Thread starter DC
  • Start date Start date
D

DC

Hi,

I have created a ASP .net client talking to a .net web
service. The web service in turn calls a C++ dll to get
data from the host. The whole thing is working perfectly
fine on my machine, but when I am deploying the components
on a Window 2000 server, running the application is
throwing this error:

System.DllNotFoundException: Unable to load DLL (my.dll)

I have tried putting the dll in the system and system32
folders, - also I tried using the whole path of the dll in
DLL Import function. None of these worked.

Could someone please help me?

Thanks!
DC
 
Can you catch this exception using DllNotFoundException
class and get more details on the message, source,
stacktrace to figure out the exact problem. Here is the
DllNotFoundException class link at MSDN:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemdllnotfoundexceptionmemberstopic.a
sp

Thanks
Muhammad Arif
System Analyst, UHC
 
Back
Top