Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Azure 500 internal server error [closed]

My newly deployed site is getting a 500 internal server error. I'm trying to deploy Umbraco to Azure.

I've turned off custom errors but that doesn't help.

Is there anyway to see the error that Azure is throwing?

SOLVED
I was able to edit my configuration and setup RDP into my web role. Once on the box I couldn't go to it via IP because I'm using the umbraco accelerator. There was a binding in IIS to go to 0.mydomain.com. If I used that I could see the page from the server and the error came up.

like image 866
Nate Avatar asked Jun 12 '11 20:06

Nate


People also ask

How do you fix 500 Internal server error There is a problem with the resource you are looking for and it Cannot be displayed?

500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. To resolve this issue, set the Enable 32-bit Applications to "False": Open the Internet Information Services (IIS) Manager.

Why do I keep getting 500 internal server error?

The 500 Internal Server error could be caused by an error during the execution of any policy within Edge or by an error on the target/backend server. The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request.

What is status code 500 internal server?

The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. This error response is a generic "catch-all" response.


2 Answers

For 500 errors, one good way is to turn diagnostics on and to look at the logs - both the application event logs and the failed request logs might help. Here's one post about this - http://oakleafblog.blogspot.com/2010/11/adding-trace-event-counter-and-error.html

As Igorek has said, you can also use RDP (remote desktop) to log in and to check the app - here's a good blog post about this - https://blogs.msdn.com/b/jimoneil/archive/2011/04/11/500-and-other-errors-in-azure-deployments.aspx


My guess is that you might be missing one or more Assemblies from the deployed package

like image 150
Stuart Avatar answered Oct 19 '22 12:10

Stuart


You don't have to use RDP, simply by turning off custom error in Web.Config will do. But make sure you are adding that in the root Web.Config, that will do the trick.

Here is an example of mine:

<system.web>     <customErrors mode="Off" />     <compilation debug="true" targetFramework="4.5">        ........     </compilation> </system.web> 

Just be aware that there are multiple web.configs in a typical project.. make sure you are adding this in the root web.config (where your Global.asax is) and NOT in Views folder.

like image 41
Rosdi Kasim Avatar answered Oct 19 '22 10:10

Rosdi Kasim