Unable to load DLL 'CLIENTAPI10M.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

-3
 // CONNECTION
[DllImport("CLIENTAPI10M.DLL", EntryPoint = "ClntApiSilentConnect", CallingConvention = CallingConvention.Cdecl)]
private static extern int ClntApiSilentConnect(string user, string password, string host, string pcms_install, string db_name, string db_pword, string db_node);

I got exception during runtime, how to resolve this

c#
asp.net
iis
asked on Stack Overflow Jan 29, 2021 by Namitha

1 Answer

0

If this DLL will be used in Global, it must be placed in the system path. Otherwise, it can be placed directly in the bin directory or root directory of the application.

Another thing you need to pay attention to is that if the application is 32-bit and the DLL is 64-bit, this problem will also occur. It is recommended that you check the version of the application and DLL.

answered on Stack Overflow Feb 1, 2021 by Bruce Zhang

User contributions licensed under CC BY-SA 3.0