- Nov 30, 2000
- 1,425
- 0
- 76
Hopefully I can describe this correctly. I have a thin VB.NET web application that is basically just implementing a SOAP service around another .NET manage DLL built in C++. The problem is the managed .NET library has a dependency on a third party DLL that is unmanaged code.
When I try to test the web site/SOAP service, I get an error that the managed DLL (or one of its dependencies) cannot be loaded. I put the unmanaged DLL in the same folder as the managed DLL (which works for a normal VB app), but still no dice. If I drop the unmanaged DLL into c:\windows\system32, it all works, but this is something that will get delivered to clients, so that is not a workable solution.
I once read somewhere that there were issues with putting the unmanaged DLLs in the same folder as the managed DLL, and that all you had to do was move the unmanaged DLL to another folder and figure out some way to modify the path. My Google-fu only reveals solutions that involve either copying the DLL to the system directory or modifying the system path on the machine, neither of which is a workable solution. I can't find any information on modifying the DLL search path for a web application and figured I would post here in the hopes that some other poor soul has run into this and knows the solution.
When I try to test the web site/SOAP service, I get an error that the managed DLL (or one of its dependencies) cannot be loaded. I put the unmanaged DLL in the same folder as the managed DLL (which works for a normal VB app), but still no dice. If I drop the unmanaged DLL into c:\windows\system32, it all works, but this is something that will get delivered to clients, so that is not a workable solution.
I once read somewhere that there were issues with putting the unmanaged DLLs in the same folder as the managed DLL, and that all you had to do was move the unmanaged DLL to another folder and figure out some way to modify the path. My Google-fu only reveals solutions that involve either copying the DLL to the system directory or modifying the system path on the machine, neither of which is a workable solution. I can't find any information on modifying the DLL search path for a web application and figured I would post here in the hopes that some other poor soul has run into this and knows the solution.