dll not loading in Web Service

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



We have developed a Web service and we need to add a reference to a .net
dll MyDll.dll which uses Win32 dlls. If we write a window forms
application and reference MyDll.dll and copy the Win32 dlls to the
bin/debug folder, the form works fine. However, when we add the reference
to MyDll.dll to the Web Service and copy the Win32 dlls to the bin folder
on the Web Service, when we try to load the web service we get the
following error:


Server Error in '/' Application.
________________________________________
The specified module could not be found. (Exception from HRESULT:
0x8007007E)

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module
could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the exception
can be identified using the exception stack trace below.


The stack trace is not very helpful since it doesn't say what file was not
found. The bin folder contains all of the files that we have on the
bin/debug folder of the Windows Forms app which runs fine.

1- Is it possible that there are other dlls in Windows/System that cannot
be loaded by the Web Service but can be loaded by the Windows Forms?
2- Is there any permission required on the dlls in order to load them from
the Web Service?
3- Is there a way to get information on what file cannot be loaded?

Thanks

Jeronimo Bertran
.



Relevant Pages

  • Exception from HRESULT: 0x800700B6
    ... I developed an C# ASP.NET Web Service and 3rd party COM component is used in ... But I am getting the following error after migrating to Windows 2003 SP1 ... Exception from HRESULT: 0x800700B6. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Class Library for CF and .NET Framework
    ... What is the stack when you hit the exception? ... > desktop windows applications as well as .NET Compact Framework apps. ... > class library needs to make use of a web service. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Web service fails to run on Windows 2003
    ... What is your web service basically doing ?. ... of code that is throwing the exception ?. ... on Windows 2000 and XP. ... FUNCTION: ProcessFile: Loop for processing lines ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Changing a users windows password
    ... I guess ASP.NET process does not have permission to do this. ... > I used the following code to change a user's windows ... But when I run this code in a web service ... > error or an exception, but the password remains the same. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ADFS Development Issues
    ... One thing to keep in mind is that if a website is protected by ADFS V1, ... site to be automatically authenticated by our windows application so ... like a web service proxy. ... generated on the server. ...
    (microsoft.public.windows.server.active_directory)