我的DLLImport
(A Delphi DLL)与 Winform 应用程序配合良好,但我的 ASP.net WebForm 应用程序(在 IIS 7 上)出现异常。
有人可以告诉我为什么以及如何处理它吗?
[DllImport("DLL_YINLIAN_INTERFACE.dll", EntryPoint = "YL_SetParam", SetLastError = true, CharSet = CharSet.Unicode, ExactSpelling = true, CallingConvention = CallingConvention.StdCall)]
static extern int YL_SetParam(int iParamIndex, byte[] ucParamBuffer);
这是调试时的异常:
System.Runtime.InteropServices.SEHException (0x80004005):
External component has thrown an exception.
at JFTHardAPI.SandTran.YL_SetParam(Int32 iParamIndex, Byte[] ucParamBuffer)