Suppress Application Error window on application crash

by dee 17. January 2008 01:19

The only way I could find is to call SetErrorMode() function of Win32 API:

SetErrorMode(SetErrorMode(SEM_NOGPFAULTERRORBOX) | SEM_NOGPFAULTERRORBOX);

Unfortunately I was not able to find the way of disabling that dialog for process which we are starting (Process.Start()).

Suppress Debug Window on application crash

by dee 15. January 2008 23:59

Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Auto to 0

Debugger.Break() and IIS issue

by dee 2. January 2008 18:01

For debugging it is very useful to use followed code in Global.asax:

void Application_Error(object sender, EventArgs e)
{
    System.Diagnostics.Debugger.Break();
}

But if you deploy it on IIS then in case of unhandled exception the followed dialog window will be shown for current logged on user:

The solution is to remove System.Diagnostics.Debugger.Break(); from code before deploying.

Powered by BlogEngine.NET 1.4.0.0
Theme by Mads Kristensen