After the release ASP.net C ++ DLL project references the page prompts specified module not found exception

1. Specify dll DllImport location reference position of the C ++ dll

        [DllImport(@"C:\Windows\System32\DDyn_Method.dll", EntryPoint = "ICaclReserves", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
        public static extern float ICaclReserves(float A, float h, float q, float Sw, float Ts, float Pi, float T, float Ps, float Zi);

2.IIS position configure an application pool to enable 32-bit applications.

3. Open the program depends view C ++ DLL Is referenced other dll is complete, whether there is an abnormality. Download: https: //files.cnblogs.com/files/midcn/depends22_x86.zip

4. Finally configure IIS access to the specified directory.

 

Guess you like

Origin www.cnblogs.com/midcn/p/10968002.html