0

I am deploying my first ASP.NET MVC to Windows Azure. After deploying the site is working and also the links within. But hours later if I check the links again it shows the following error:

An error occurred while processing your request.

I used the steps mentioned here.

Any idea what I am missing? Why is it working for hours and then throwing an error?

3
  • The connection string is correct on azure ? Commented Feb 19, 2014 at 6:07
  • I think yes, because it worked for hours. Commented Feb 19, 2014 at 6:08
  • 3
    It is an exception you don't catch and Azure won't display it for security reasons, see this tutorial about ASP.NET Azure troubleshooting: windowsazure.com/en-us/documentation/articles/… Commented Feb 19, 2014 at 6:19

3 Answers 3

3
<configuration>
  <system.web>
    <customErrors mode="Off" />
  </system.web>
</configuration>

This is the quick-and-dirty approach but it will at least get you the information you are looking for. Just be sure to turn custom errors back on when you are done. NOTE: This method will display your stacktrace to the entire world.

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

Comments

0

In MVC this error will show if any exception will occur. You need to debug your code via enabling trace logs or by changing parameter in web.config file so it will display the exception.

Comments

0

There are multiple ways for getting the error details and debugging.

1) Diagnostic configuration for web role. Enable application error. So the application error will be logged to the WADEventTable.Refer http://msdn.microsoft.com/en-us/library/azure/dn186185.aspx

2) While deploying/publishing the application, Enable the remote desktop for role. So basically it will you can connect to role instance remotely and see in event viewer

3) Define custom page in the application and redirect to it with exception details

Comments

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.