DllNotFoundException

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
 
M

Muhammad Arif

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
 

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