External component has thrown an exception
I have a ASP.NET website using C# that calls a C++ method using DLLImport
. Everything was working fine and suddenly I keep getting this error:
External component has thrown an exception. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropSer开发者_Python百科vices.SEHException: External component has thrown an exception.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Obviously, exception is originating somewhere in C++ code. See this to understand SEHException. You can use ErrorCode property to get the actual error. If its a common HRESULT code, you can get details by searching over internet, if its some custom code then you probably had to contact C++ component author for more details.
精彩评论