::: Web.Config Compilation error - Overriding the Web.Config file settings :::

Last post 03-09-2009 10:28 AM by xxxd. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-03-2009 12:47 AM

    ::: Web.Config Compilation error - Overriding the Web.Config file settings :::

    Hello Everyone,

    Thanks in advance,

    Here i had some problem with my web.config file in the root of the website on the production server.

    I created one website for my application assume "MySite". Under this i had some other applications assume like "MySubSite1" and "MySubSite2".

    When i access MySite its working fine. But when i access MySubSite1 or MySubSite2 it is giving some web.config compilation errors. Here the problem is it is taking the values from root web.config. Here i am pasting the error even....


    Server Error in '/Test/Test4' 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: Unrecognized attribute 'type'.

    Source Error:

    Line 3:  	<configSections>
    Line 4: <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
    Line 5: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    Line 6: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    Line 7: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

    Source File: D:\WWPublic\web.config    Line: 5


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




    Here my question is how to override these configuration settings in MySubSite web.config file. Please it is very urgent...

    Thanks and Regards,
    Chary...

  •  Advertisement

    Featured Advertisement

     
  • 03-03-2009 11:49 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::

     Looks like you are using .net framework 1.1, however the web .config file looks to me like a 2.0 type of configuration. Can you double check?

  • 03-09-2009 1:01 AM In reply to

    Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::

    Hello everyone,

    Thanks to everyone who is contributing in the forums and sepnding their time. Thanks for your time and contribution for my post. As Simon said in the above reply is one solution for this problem and We had another solution for this problem.

    Just create the main application and sub applications as virtual folders under the root (web site). Then In IIS manager go to the properties window of the root, Go to Home Directory tab, then select "A redirection to URL" radio button. Enter the main applications virtual folder name to which we need to redirect in Redirect to textbox field.

    Then select the second checbox - "A directory below this one" in "The client will be sent to:" section. Then click on apply button. Browse the site then you automatically redirected to the main application.

    Thanks and Regards,

    Chary.

  • 03-09-2009 10:28 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::

     I am sure how the above solution works. Can you elaborate more, thanks?

Page 1 of 1 (4 items)