I have a pair of aspnet C# applications that call an unmanaged dll (written in Delphi). The applications are installed on IIS. When any of the two applications tries to call the unmanaged dll the following error is reported (same error in both cases):
"Unable to load DLL 'dllName.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)"
Here are some details about the applications:
Any ideas about how to debug this problem or a possible solution? thanks!
The prerequisites to running a 32 bits delphi DLL in IIS are:
Enable 32Bits Application In the site AppPOOL, like bellow in image.
Your c# project need compile to x86 Plataform
And what finally solved my problem is copying borlndmm.dll in the application bin directory along with all the other C # project DLLs
User contributions licensed under CC BY-SA 3.0