Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP on IIS7 1

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Have just ported my development code to a new server which is running IIS7. I want to be able to see any error messages generated by my ASP code. To aid this I have "SEnd Errors to browser" set to true in IIS Manager in the ASP section.

However, my code is generating an error and all I am seeing at the client side is:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

How can I get it to tell me the error code

Mighty
 
This i a security improvement from IIS6 so hackers can't mess with your system and find the weak spots.

You can turn errors on by running this from the server in the command prompt:
Code:
C:\>%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

And to turn if off you just type in:
Code:
C:\>%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:false
 
Tried that and it didn't work

Mighty
 
500 Internal Server Error" isn't very helpful to us to find the error. All that means is that scripting engine encountered a problem. What I would suggest is try opening the page in question through Firefox and see if it give you a more descriptive error message. In the past I have had IE just tell me that there was an internal server error, while FF reports the file, the line and a description of the error.
 
Well that's my problem really - I want IE to tell me what the actual error is and the line number, etc

Mighty
 
I tried installing Firefox and it is still not displaying the error message from my ASP code. Still just getting "500 - Internal server error". Pain in the ass!!! I just want to see actual error message with line number, etc.

Mighty
 
Do you have access to the server? Load that page up on the server it should show you the details that way.
 
Hey CandyMan,

That does work - but not an ideal situation. Is there any way to get it to report the error to a client browser on a machine other than itself??

Mighty
 
That did the job - thanks a million. Star for you!!

Mighty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top