Classic ASP


I receive: An error occurred on the server when processing the URL.in ASP. Why?
IIS 7.0 does not show the detailed errors when attempting to debug ASP scripts. You may receive the error ""
An error occurred on the server when processing the URL. Please contact the system administrator.""
With a link that goes to http://learn.iis.net/page.aspx/559/running-classic-asp-applications-on-iis-70-and-iis-75/

To preview the actual error that the ASP code is generating, simply place the following tags within the system.webServer tags inside the web.config that exists within your wwwroot folder -

 

<httpErrors errorMode=""Detailed"" />

<asp scriptErrorSentToBrowser=""true"" />

If you don't see a web.config inside wwwroot, simply create one and place the following tags inside it -

<?xml version=""1.0"" encoding=""UTF-8""?>

<configuration>

    <system.webServer>

  <httpErrors errorMode=""Detailed"" />

<asp scriptErrorSentToBrowser=""true"" />

    </system.webServer>

</configuration>