简体   繁体   中英

Getting '500 - Internal server error' while running an Azure project

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

I have also added my IP to the firewall rule. I am a beginner in Azure. I am getting the above error while trying to run the azure web project. I have added following tags after going through some articles but none help me.

 <validation validateIntegratedModeConfiguration="false"/>
 <identity impersonate="false"/>

Basically, your application is throwing an unhandled error. You will want to know what the real error is, as Error 500 is just a generic way of saying: something happened.

You can deploy your app with customerrors being OFF so you can actually see the real error (Check this link for sample instructions: http://www.serverintellect.com/support/programming/custom-errors.aspx ).

Alternatively, if you're using WebRoles, you can RDP into a server instance and check Windows EventViewer, the details of the error will likely show up there.

In my case, I was using code downloaded from durandaljs.com. The "Build Action" on my default page (index.html) was set to "None", so this file was not uploaded to Azure during publish. Fixed by changing the "Build Action" to "Content".

Troubleshooting IIS via Remote Desktop really helped me figure this out. Choosing the "Enable Remote Desktop for all roles" when you publish, then in Server Explorer, expand Cloud Services, etc., then right-click your instance and choose "Connect using Remote Desktop".

This may be a proxy related issue.

Try adding these to your *.config files:

<system.net>
    <defaultProxy useDefaultCredentials="true" />
</system.net>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM