Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging all yellow screen of deaths, even when its a compilation problem

Earlier today we experienced a YSOD on one of our MVC sites running on IIS on Windows Server 2003.

Usually, these are reported via e-mail using ELMAH (using this setup), but since this was a compilation issue (of some sort), it did not get reported via e-mail.

The specific error was:

"The directory 'App_GlobalResources' is not allowed because the application is precompiled."

This is a major problem, since a potential customer could notice the problem before we do. How can we make sure these YSODs are logged, when the exception handler on the site is not called?

like image 899
mbp Avatar asked Aug 27 '09 17:08

mbp


People also ask

Is there a yellow screen of death?

A Yellow Screen of Death occurs when an ASP.NET web app encounters a problem and crashes.

What does a yellow screen mean on a computer?

Night Light is a Windows 10 feature that tints the screen a warm color i.e., yellow or orange. It is meant to protect users from the bright white/blue of the screen. Open the Settings app (Win+I keyboard shortcut). Go to System>Display. Turn the Night Light switch off.


1 Answers

It is possible to monitor the event log with VBScript. You could then email this when it occurs:

Here's an example:

http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb07/hey0226.mspx and email from vbscript: http://www.paulsadowski.com/WSH/cdo.htm

You could do this with powershell and/or another .net app on the box also.

like image 53
Kevin LaBranche Avatar answered Sep 19 '22 07:09

Kevin LaBranche