1

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.

3
  • 1
    ask your hoster if any problems Commented Feb 7, 2012 at 11:29
  • Something in your code, faulty memory module, god? It could really be anything. You need to investigate more and logging is a good first choice. Commented Feb 7, 2012 at 11:30
  • Already asked my hosting, waiting for a reply. Commented Feb 7, 2012 at 11:38

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

1 Comment

It's hosted externally, Im just wondering if this error could be something specific.
3

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

1 Comment

Yes yes I know about it, this is what I am doing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.