Previous Next

Thread: 500.19 - Internal Server Error

Last post 05-14-2008 6:11 PM by anilr. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 05-14-2008, 5:29 PM

    500.19 - Internal Server Error

    I am attempting to run IIS7 on Windows Vista Business.  The webpages will display properly on another machine also running IIS7 / Windows Business - but not this one.  The files are located in a sub directory under  C:\inetpub\wwwroot\ and I have checked and the files are marked read write so it does not seem to be a permission problem. 

    This is the error message -any thoughts / suggestions are appreciated

    HTTP Error 500.19 - Internal Server Error

    Description: The requested page cannot be accessed because the related configuration data for the page is invalid.

    Error Code: 0x00000000

    Notification: SendResponse

    Module: CustomErrorModule

    Requested URL: http://localhost:80/elite

    Physical Path: C:\inetpub\wwwroot\Elite

    Logon User: Anonymous

    Logon Method: Anonymous

    Handler: StaticFile

    Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

    Config File: \\?\c:\inetpub\wwwroot\Elite\web.config

    Config Source:
        3:     <system.webServer>
        4:         <staticContent>
        5:             <mimeMap fileExtension=".asp" mimeType="text/plain" />
    

    More Information... This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.


    Server Version Information: Internet Information Services 7.0.  

    ----------------------------- end of error message ---------- 

     

    This is the web.config file

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <staticContent>
                <mimeMap fileExtension=".asp" mimeType="text/plain" />
            </staticContent>
            <defaultDocument>
                <files>
                    <add value="index.asp" />
                </files>
            </defaultDocument>
        </system.webServer>
    </configuration>

  • 05-14-2008, 6:11 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 966
    • anilr

    Re: 500.19 - Internal Server Error

    The error means exactly what it says - the staticContent section is locked globally, so it cannot be configured in your app's vdir.

    To fix the issue on the problematic machine, run "%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/staticContent" from an elevated command prompt.

    Why this does not cause an issue on your other machine - in vista rtm, we shipped with most of our config sections locked by default, after a comprehensive review, we unlocked a bunch of them by default in vista sp1 (including staticContent) - but if you installed IIS before installing sp1, you get the rtm default (since we cannot change the default after you have possibly already applied configuration changes).  Installing IIS after installing sp1 (or using sp1 slipstream build) would get you the sp1 default.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (2 items)
Page view counter