How do I get meaningful error messages in IIS7?

I have moved this question to Server Error , where it is probably more appropriate.

I have a classic ASP website that crashes in IIS7. This fails because IIS does not allow uploading files larger than a certain size. I know this because files below 200k work fine. I removed the "Status Code 500" error in IIS, but still didn't get the file name and the line where my code failed, as when running locally.

Instead, I get:

The page cannot be displayed because an internal server error has
occurred.
If you are the system administrator please click here to find out 
more about this error.

How do I get the filename and the line where my code crashed?

Here are my IIS settings:

alt text
(source: yart.com.au )

AND ANSWER FROM THE SERVERFALT ...

Log in as an administrator on the IIS server, open IIS 7 Manager, open the Asp icon under the website for which you want to change the error messages (it will be on the right with all the other icons; this is the first one).

Scroll down and set Send errors to browser to True. Maybe iisreset is needed, not sure.

+2


a source to share


2 answers


Detailed error messages are invoked. Very useful for testing



http://blogs.iis.net/bills/archive/2006/10/19/Improving-Custom-Errors-for-IIS7-Server.aspx

+2


a source


This isn't exactly the answer to your error question, but if you're having trouble uploading large files, you should probably change the AspMaxRequestEntityAllowed settings in IIS. http://forums.iis.net/t/1130837.aspx



+1


a source







All Articles