I have developed a MC++ business component (named PWSNetBridge.dll) which
utilizes an exported class resident within a separate native DLL (named
PWSWinBridge.dll). This exported class is made visible via a
__declspec(dllexport) declaration.... so the separate DLL is implicitly
loaded.
If I write a C# test program to invoke PWSNetBridge.dll everything works
fine. I place both PWSNetBridge.dll and PWSWinBridge.dll within the same
directory as the C# test program and everything works fine.
On the other hand, if I invoke PWSNetBridge.dll from a ASP.NET application
and I place PWSNetBridge.dll and PWSWinBridge.dll into the ASP.NET
application's "bin" directory, there is a failure loading the
PWSNetBridge.dll assembly. If within PWSNetBridge.dll I comment out
references to the PWSWinBridge.dll class... everything works fine..... so the
problem has been isolated to the PWSWinBridge.dll native DLL that is
implicitly loaded.
Help !!!
See the following...
Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Confi g\machine.config Line:
198
Assembly Load Trace: The following information can be helpful to determine
why the assembly 'PWSNetBridge' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = PWSNetBridge
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/aspx/PasswordSafeStoreWeb
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: PWSNetBridge
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/aspx_passwordsafestoreweb/027cc01d/9c8df954/PWSNetBridge.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/aspx_passwordsafestoreweb/027cc01d/9c8df954/PWSNetBridge/PWSNetBridge.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/aspx/PasswordSafeStoreWeb/bin/PWSNetBridge.DLL.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: PWSNetBridge, Version=1.0.1736.37042,
Culture=neutral, PublicKeyToken=null
--
Philip