Technology : ASP.Net Technology RRS feed

  • Question


    I found this problem when i put my directories




    and another one in





    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: The element 'codeSubDirectories' cannot be defined below the application level.

    Source Error:


    Line 72:   <system.web>

    Line 73:     <compilation debug="true">

    Line 74:       <codeSubDirectories>

    Line 75:         <add directoryName="VB"/>

    Line 76:         <add directoryName="CS"/>

    Source File: c:\inetpub\wwwroot\14-4-08_safal\web.config    Line: 74

    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

    Saturday, May 3, 2008 8:32 AM

All replies

  • I have never used the "codeSubDirectories" but judging by the error message, it looks like the web.config is in a virtual folder than the root physical folder. Then again, by the source file url, it looks like you are indeed placing it in the root directory unless you set "wwwroot" as root which is not common.


    Try shifting the web.config or atleast the relevant section to "c:\inetpub\wwwroot\".

    Saturday, May 10, 2008 5:47 PM