3

I have a classic ASP website that is crashing in IIS7. It is crashing because IIS doesn't allow file uploads greater than a certain size. I know this because files below about 200k work fine. I removed the Status Code 500 error in IIS but I still don't get a file name and the line where my code failed as I do 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."

See http://adcore-com-au.si-sv3956.com/admin/edit_options.asp for an example.

See http://www.yart.com.au/admin/edit_options.asp for what it should look like.

How do I get a file name and the line where my code failed?

Here are my IIS settings:

alt text
(source: yart.com.au)

Glorfindel
  • 1,213
  • 3
  • 15
  • 22
Petras
  • 249
  • 1
  • 4
  • 12
  • Viewing the site from the computer that's running IIS tends to show more error details (assuming the default settings). – Chris S May 19 '10 at 02:45

1 Answers1

4

Login as an admin on the IIS server, open IIS 7 Manager, the open the Asp icon under the Web site you want to change the error messages for (it'll be on the right with all the other icons; it's the first one).

Scroll down and change Send Errors To Browser to True. Might have to iisreset, not sure.

gravyface
  • 13,947
  • 16
  • 65
  • 100
  • After you get it working you might want to set it back to not sending errors to the browser. – Bratch May 19 '10 at 14:50
  • Yup, Microsoft disabled error output by default so that sensitive information about your configuration (databases, IPs, paths, etc.) is not disclosed to your visitors. – gravyface May 19 '10 at 14:58