TheGateKeeper
TheGateKeeper

Reputation: 4530

Asp.net throwing random error

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

Answers (2)

adt
adt

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

Craig Lebowitz
Craig Lebowitz

Reputation: 549

Check your windows Event Log, specifically the Application log. Uncaught ASP.NET errors will show up there.

Upvotes: 3

Related Questions