azureazure-web-app-servicecustom-errors

When I set customErrors mode="Off" in azure I do not get the error information


I get this message:

"The page cannot be displayed because an internal server error has occurred."

my web.config

<customErrors mode="Off"/>

my Web.Debug.config/Web.Release.config

<customErrors mode="Off" xdt:Transform="Replace"/>
  <compilation xdt:Transform="RemoveAttributes(debug)" />

Solution

  • this solve the problem

    <system.webServer>
            <httpErrors errorMode="Detailed" />
            <asp scriptErrorSentToBrowser="true"/>
        </system.webServer>