I am developing a Webservice for consuming a Managed C++ dll (C++/CLI dll).
This managed C++ dll is in turn utilizing unmanged (native) C++ dlls [via LoadLibrary ....]
I have added this manged dll to my webservice as reference (and also all it's refered assemblies). Now when I try to use this webservice in ASP or C# client I am getting :
******* Error log start *********
"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.
Stack Trace:
[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
...................
******* Error log end *********
But the same manged dll I could able to refer (from the same location as I refered from webservice) in an C# console application, which proves that all the required dependencies are available.
Can any one please give me hints/directions to solve this issue.
Any thing peculiar in invoking manged dlls (utilizing unmanaged dlls) in webservice ?