Reputation: 4530
I have an asp.net blog that is randomly throwing this error:
The page cannot be displayed because an internal server error has occurred.
It lasts anywhere from 5 minutes to 1 hour.
I haven't implemented error logging yet, but in the meantime what can cause this? The error goes away on it's own after a while.
Thanks.
Upvotes: 1
Views: 235
Reputation: 4360
Use Elmah, it is available as nuget package, in 2 minutes you will have an error logging enabled application. So you can view and detect error.
Elmah has lots of features and easy to integrate. You can follow these link for more info.
http://code.google.com/p/elmah/
http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx
http://nuget.org/packages/elmah
Upvotes: 3
Reputation: 549
Check your windows Event Log, specifically the Application log. Uncaught ASP.NET errors will show up there.
Upvotes: 3