Groups | Blog | Home
all groups > dotnet interop > april 2004 >

dotnet interop : WebService DllImport Unable to load DLL


James Chang
4/20/2004 4:36:06 PM
Hello

I am trying to import a dll from within a webservice. At the call of the dll function, a DllNotFoundException exception is thrown. I have tried to putting the dll in the web service directory, putting the dll in the system32 directory, specifying the full path for the DllImport function. I always get the same error. Any ideas of how I can get around the problem
Cheers
James Chan
Idael Cardoso
4/24/2004 2:19:11 PM
I think that what's happening is a problem of file access security. Change
the permission of your dll in order to Everyone can read/execute, if that
solve the problem, then remove Everyone and set the correct rights for the
users ASPNET, IUSR_Machinenam, etc. If your DLL code access other objects
such as registry or other files, you must take care of security in that
objects too.

Idael.
[quoted text, click to view]
dll function, a DllNotFoundException exception is thrown. I have tried to
putting the dll in the web service directory, putting the dll in the
system32 directory, specifying the full path for the DllImport function. I
always get the same error. Any ideas of how I can get around the problem?
[quoted text, click to view]

James Chang
4/26/2004 3:56:05 PM
Thanks for the reply Idael
What you have suggested makes sense. I will try it out
AddThis Social Bookmark Button