CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Classic ASP using IIS7

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    169
  • Date Created
    Tuesday, January 31, 2012
  • Last Updated
    Sunday, May 28, 2023
  • This Article Has been Viewed
    3508 times
  • Short Desc
    500 Internal Server Error, and IIS7, using Classic ASP, can be a nightmare, if IIS7 is not configured properly. However, there has to be a web.config configuration as well.
  • Details
    By default, IIS7 does not show the ASP Classic error to the web page.
    Even if you set the browser to NOT show Friendly error messages.
    This is a default setting within IIS7, and can only be set within the web.config file.
  • Recreate Issue
    To recreate this issue.

    By default, IIS7 does not show asp classic errors to the page.
    You will instead, get the default 500 Error message.
  • Resolve Issue
    To resolve this issue.

    Scenario #1:

     
    Step 1. Open a text document.
    Step 2. Insert this code:

    <configuration>
    <system.webServer>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true"/>
    </httpErrors>
    </system.webServer>
    </configuration>

    Step 3. Save the file as Web.Config
    Step 4. Upload the Web.Config file to your host web directory.[/codevalue]