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.InteropServices.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With