mayank.karki
mayank.karki

Reputation: 748

Getting error on publishing mvc app to Azure

I have published web site on Azure, but it's showing page with this message "The page cannot be displayed because an internal server error has occurred."

I don't how to troubleshot this.

I just added

<httpErrors existingResponse="PassThrough" /> under  <system.webServer>

and now its showing blank page.

Upvotes: 2

Views: 202

Answers (1)

JMK
JMK

Reputation: 28059

The fastest way to diagnose this would be to use Azure's Visual Studio Online service to amend the config file, setting the custom errors option to off. Then you will get a detailed error message.

You can turn this on under the configure tab of your website, look for this:

Edit in VS Online option in Azure Portal

Then jump over to the dashboard and look for this:

Link on Dashboard

Finally, open web.config and set customErrors to off, like so:

<customErrors mode="Off" />

Upvotes: 1

Related Questions