Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External component has thrown an exception

Tags:

c++

c#

asp.net

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.

like image 221
InfoLearner Avatar asked Mar 15 '11 23:03

InfoLearner


1 Answers

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.

like image 108
VinayC Avatar answered Oct 02 '22 21:10

VinayC