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
machine:
[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.

Thanks,

Sam

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
sam_blinex_com.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi

The error is generated when an unhandled exception occurred.
For detailed information you may take a look at the SEH section in the book
below.
Programming Applications for Microsoft Windows (Microsoft Programming
Series)
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)
http://support.microsoft.com/default...B;EN-US;121434

How to disable Dr. Watson for Windows (188296)
http://support.microsoft.com/default...B;EN-US;188296

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
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.