Sunday 9 June 2013

"An error occurred while processing your request." using Windows Azure

If you're getting the message "An error occurred while processing your request." and you want to see the error in your Azure deployment you have to make sure of two things:

1)turn custom errors off by adding this under <system.web>:

<customErrors mode="Off"/>

2)if it's an MVC project it most likely set up an error handler filter for you so find the App_Start folder find FilterConfig.cs and comment out the following line like this:

//filters.Add(new HandleErrorAttribute());


No comments:

Post a Comment