12

I am receiving a Server Error on an ASP Classic site running on IIS 7.5.

I have "Send Errors To Browser" set to True, however I still receive the following error screen: 500 - Internal server error.  There is a problem with the resource your are looking for, and it cannot be displayed.

smartcaveman
  • 41,281
  • 29
  • 127
  • 212

2 Answers2

16

IIS is hijacking your classic ASP app's response. In your web.config file ensure that the following is configured:

<configuration>
    <system.webServer>
        <httpErrors existingResponse="PassThrough"/>
    </system.webServer>
</configuration>

Also make sure that you've enabled "Send Errors To Browser" in the ASP configuration feature for your site in IIS manager:

enter image description here

enter image description here

Kev
  • 118,037
  • 53
  • 300
  • 385
  • 1
    there is no `web.config` in a Classic ASP site. Should I create one and add that setting? – smartcaveman Jun 13 '11 at 10:56
  • 1
    @smartcaveman - yes. `web.config` in IIS7.x isn't just specific to ASP.NET. It can be used to config IIS settings as well, such as IIS's custom error handling. – Kev Jun 13 '11 at 11:01
  • @smartcaveman - I updated the answer to show exactly what it should look like. – Kev Jun 13 '11 at 11:02
  • those are my settings, as I posted in the question. I will create a web.config and get back to you. – smartcaveman Jun 13 '11 at 11:19
  • @MatthewLock in what way doesn't it work? Why not ask a new question, refer to this one and explain in detail what doesn't work. Also include the relevant configuration info which we know nothing about. – Kev May 05 '13 at 13:00
  • Fair enough. Will do next time. – Matthew Lock May 06 '13 at 02:57
  • Perfect solution. I already knew 'Send Erros To Browser', hence it was correctly set. As I was accessing external server, the creation of the 'web.config' AT THE APPLICATION ROOT completed the solution. – Marcus Vinicius Pompeu May 10 '14 at 03:36
0

In my case my site needed to be an IIS Application, rather than just a virtual directory,

Matthew Lock
  • 13,144
  • 12
  • 92
  • 130