By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

Why "Application has generated an exception" error and not a good error message?

P: n/a

Occasionally we get this error message when running an app on a test
[name].exe - Common Language Runtime Debugging Services

Application has generated an exception that could not be handled.

Porcess id=[id], Thread id=[id].

Click OK to terminate the application.
Click CANCEL to debug the application.
Under what conditions does .NET use this useless message instead of
the normal one that says the error and stack trace and such? Is there
any way to turn off the debug option, since this is on a machine that
can't do debugging anyways?

This seems to happen when there's an error before our application
initializes, like with a missing DLL or problem in the constructor for
certain objects used within Main.



B-Line is now hiring one Washington D.C. area VB.NET
developer for WinForms + WebServices position.
Seaking mid to senior level developer. For
information or to apply e-mail resume to
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

The error is generated when an unhandled exception occurred.
For detailed information you may take a look at the SEH section in the book
Programming Applications for Microsoft Windows (Microsoft Programming
by Jeffrey Richter

And the Windows gave us the last time to debug the error.
If we did not choose the debugger, the applicaion will just crash.

Here are two KB article for your reference.
Specifying the Debugger for Unhandled User Mode Exceptions (121434);EN-US;121434

How to disable Dr. Watson for Windows (188296);EN-US;188296

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! -
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.