私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)