Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Say an ASP.NET website suddenly starts returning a 500 error code with a blank page (not serving the configured error document). Where might I find error reports and/or clues as to what is happening, besides:

  • Email error notifications
  • Event Viewer (Application log)
  • Task Manager (memory usage, CPU usage)
  • Windows HTTP logs (C:\Windows\System32\LogFiles\httperr)
  • ASP.NET log files (C:\inetpub\LogFiles)

Also, what are common first steps? For example, does restarting the web site in IIS often resolve issues?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you don't get an ASP.NET error page ("Yellow Screen of Death"), then that typically suggests that IIS encountered an error before it managed to fire up the ASP.NET engine. IIS will usually show a more elaborate error page if you access the site from a browser running on the server running the site (i.e. from a non-remote client).

Often, this is a problem with the application configuration in Web.config that prevents IIS from starting ASP.NET.

The sources you list are also good, with Event Viewer probably being the best one.

share|improve this answer
    
Yep, the event viewer is the best place to start, it will normally capture all of the errors that IIS encounters with anything related to starting the app. After that I would take a look at ELMAH, its a good tool and easy to add to your app for more detailed error logging options. –  Brent Pabst Jul 30 '12 at 18:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.