Setting detailed/customer error messages issues, iis7 asp classic

后端 未结 2 1399
南旧
南旧 2021-01-26 10:01

I haven\'t been able to find a similar problem anywhere. Basically when I set the site to custom errors it displays the default 500 error message, however when I then set it to

相关标签:
2条回答
  • 2021-01-26 10:26

    IN IIS

    1. Open the IIS7 manager

    2. Select the Website and on its features view, double click on “Error Pages”.

    3. Right click and select the “Edit Feature Settings…” or select the same from the Actions pane (in the right hand side)

    4. Select the “Detailed errors” radio button and click on OK

    5. Now, your client browsers will be able to see the detailed error messages.

    ALSO...

    Click on the website in content view. Go to "ASP" under the "Debugging Properties" make sure "Send errors to browser" is set to true.

    IN CONTROL PANEL

    Internet Options > Advanced (tab) > Un-tick "Show Friendly HTTP error messages"

    0 讨论(0)
  • 2021-01-26 10:27

    By default IIS7 intercepts HTTP status codes such as 4xx and 5xx generated by applications further up the pipeline.

    In web.config replace the line

    <httpErrors errorMode="Detailed">
    

    with

    <httpErrors existingResponse="PassThrough" errorMode="Detailed">
    
    0 讨论(0)
提交回复
热议问题