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?
under prompt
%windir%\system32\inetsrv
I had the same error and I solved following the above steps.
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:
Set it to True
As you've already done, you need to disable the show friendly HTTP error messages in IE.
Simply Add following line under this
And You are done..
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 setEnable Server-side Debugging = False
.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
with
If "Send Errors To Browser" is not working set also this:
Error Pages -> 500 -> Edit Feature Settings -> "Detailed Errors"