Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

WebService DllImport Unable to load DLL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Chang - 21 Apr 2004 00:36 GMT
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
james.chang@quest.com.au
Idael Cardoso - 24 Apr 2004 13:19 GMT
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
James Chang - 26 Apr 2004 23:56 GMT
Thanks for the reply Idael
What you have suggested makes sense. I will try it out
James.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.