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.