20

I can’t get detailed error reporting for IIS7 for ASP pages on a remote browser connection. However, when I run the page locally on the server I do see a detailed error message.

I have enabled Send Errors To Browser but IIS keeps sending an internal server error.

I have unchecked show friendly HTTP error messages on IE.

Does anyone know how to enable error messages to be sent to a remote browser?

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Joseph Bi
  • 1,166
  • 2
  • 9
  • 11

6 Answers6

28

If "Send Errors To Browser" is not working set also this:

Error Pages -> 500 -> Edit Feature Settings -> "Detailed Errors"

Andrew
  • 12,991
  • 15
  • 55
  • 85
Casper
  • 281
  • 3
  • 3
  • You do not need to select "500" or anything other. "Edit Feature Settings" is independent of the selected status code. – Uwe Keim Apr 28 '23 at 15:35
12

There is an ASP setting you need to change in IIS 7

Under the IIS heading, open the ASP properties, and under Compilation, expand the Debugging Properties, there you'll find:

  • Send Errors To Browser

Set it to True

As you've already done, you need to disable the show friendly HTTP error messages in IE.

Andrew
  • 12,991
  • 15
  • 55
  • 85
9

IIS
  - Error Pages
      - Edit Feature Settings
        - Check: Detailed errors

IIS
  - ASP
    - Compilation
      - Debugging Properties
        - Set: Enable Server-side Debugging = False
        - Set: Send Errors To Browser = True

In my case Server-side Debugging was on and it was not displaying error details on remote side. It started showing error details as soon I set Enable Server-side Debugging = False.

krlzlx
  • 5,752
  • 14
  • 47
  • 55
user1720604
  • 91
  • 1
  • 1
5

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">
Gustavo
  • 71
  • 1
  • 1
  • This was the solution for my case, too, after I did [both steps outlined here](https://stackoverflow.com/a/18838090/107625). – Uwe Keim Apr 28 '23 at 16:04
3

under prompt

  1. go to %windir%\system32\inetsrv
  2. execute inetmgr
  3. in the IIS MMC select "web sites" from the three on the left
  4. open the menu action\properties.
  5. in the home directory tab select "configuration..."
  6. in the tab "debug" enable the send error to the client and flag both the checkboxes.
  7. confirm all
  8. restart IIS.

I had the same error and I solved following the above steps.

mbinette
  • 5,094
  • 3
  • 24
  • 32
1

Simply Add following line under this

<?xml version="1.0" encoding="UTF-8"?>
  <configuration>
    <system.webServer>
      <httpErrors errorMode="Detailed" />
    </system.webServer>
</configuration>

And You are done..

Andrew
  • 12,991
  • 15
  • 55
  • 85
Hetal
  • 11
  • 1