I just installed Elmah is Nuget and it shows teh errors, but when I restart my web application, it doesn’t have the old one, how do I configure it to save it? I thought it would do that automatically..
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using the default provider, your error log won’t survive application restarts because it’s stored in memory. Choose a different provider instead, such as XML file or one of the database ones, such as
Elmah.SqlErrorLog– you need to edit theweb.configfile to change this.There’s more info on the web. For example:
http://code.google.com/p/elmah/wiki/DotNetSlackersArticle#Storing_errors_in_memory
http://www.devcurry.com/2012/05/error-handling-elmah-in-aspnet-mvc.html