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.
> 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 Chang
> james.chang@quest.com.au
Thanks for the reply Idael
What you have suggested makes sense. I will try it out
James.