::: Web.Config Compilation error :::

Last post 03-09-2009 12:53 AM by haigemini@gmail.com. 12 replies.

Sort Posts:

  • ::: Web.Config Compilation error :::

    03-02-2009, 7:13 AM

    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...

  • Re: ::: Web.Config Compilation error :::

    03-02-2009, 8:59 AM

    Are the sub sites set to use the correct version of .net - the error returned is saying that its a .net 1.1 application - should this be version two - you may need to set the asp.net runtime version for the folders in IIS to 2?

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 12:06 AM

    Hello Simon,

    Thanks for your reply. The sub sites are set to the correct versions. I checked them for more 10 times in inetmgr they are configured to the correct version.

    But i don't know wt is the the problem i am struggling from last two, if any help in any other context that will be appreciated.

    Thanks and Regards,

    Chary. 

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 6:17 AM

    Hi

     Can you just confirm if this should be running under .net 2.0? Assuming this is the case we need to try and determine why .net 1.1 is being used. Check to see if the parent iis website that the virtual folders are in is configured for the correct version. If so - create a new parent website and recreate the virtual folders in there to see if that fixes the issue. Is the application running in the root a 1.1 application?

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 6:28 AM
    • Participant
      1,014 point Participant
    • chandu2chandu1
    • Member since 03-23-2007, 6:06 AM
    • Bangalore, India
    • Posts 233

    Hi Chary,

    The System.web.extensions seems to be of asp.net ajax's extensions for asp.net framework.  You first verify the ASP.NET AJAX is installed on the machine that you are facing the problem.

    Imagination is more important than knowledge..
    [Albert Einstein]

    Regards,
    Chandu

    My Blog
  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 6:39 AM

    Hi,

    Thanks for your reply again.

    Assume my root website is "MySite". MySite is the root website and it is asp.net 2.0 application. Even we configured it to 2.0 version in IIS ASP.NET tab.

    In "MySite" now i created two applications by creating the Virtual Directories for them and are 1.1 applications. They are configured to the respective versions of framework.

    Now if we access them i am getting the compilation error. Even we created the same on other machine and there also the same problem.

    Regards,

    Chary.

     

     

     

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 6:43 AM

    Hi Chandu,

    Thanks for the reply and your time.

    ASP.NET AJAX installed on that machine. On that machine other applications which are using AJAX are working fine. Even though i am getting this compilation error.

    Regards,

    Chary.

     

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 9:24 AM

    Ah, so there is a 2.0 assembly in the root and there are 1.1 assemblies in the virtual folders... Making more sense now. The configuration from from the root will be also applied to the virtual folders - thats something which has caught me out previously. I would imagine that the configuration files in the sub folders dont have the system.web.extensions in them (since the ajax control toolkit is not 1.1 compatible) and this is being applied from the application in your root.

    If you cannot set up another website I would recommend (if possible) that you move the root application into a virtual folder so that you can have a clean root folder to avoid these kinds of issue.

    If you require any clarificaion or more help let me know

  • Re: ::: Web.Config Compilation error :::

    03-03-2009, 11:56 PM

    Hi,

    Thanks for your reply again,

    Ya, You are right, that root folder configurations are applied to the sub folders also. The configuration files in the sub folders didn't have the system.web.extensions and that is been applied from root.

    Now solution for this problem may be as you said in the reply. Even now we understood the problem and trying to move the root to a new virtual folder. But how to set the default page for the website from this virtual directory?

    Once again thanks for your respose and time.

    Thanks and Regards,

    chary.

  • Re: ::: Web.Config Compilation error :::

    03-04-2009, 12:44 AM
    • Participant
      1,014 point Participant
    • chandu2chandu1
    • Member since 03-23-2007, 6:06 AM
    • Bangalore, India
    • Posts 233

    Hi Chary,

    Try checking the versions of your GAC ajax extensions dll's and the one you wrote in your web.config file.  If they both are same and for some reason you are getting this compile error, then try copying those dll files into your bin directory and try once.

    Imagination is more important than knowledge..
    [Albert Einstein]

    Regards,
    Chandu

    My Blog
  • Re: ::: Web.Config Compilation error :::

    03-04-2009, 2:17 AM
    • Member
      532 point Member
    • arry.net
    • Member since 07-04-2008, 9:42 AM
    • Posts 141

     i too face this problem .all u have to do ,just go to  intetmgr

     right cick and open property->

    go  to under Asp.Net Tab

    Select Asp.net Version 2.0 (if u have developed ur application  in 2.0 )

    that's it 

    arry.net
    Filed under:
  • Re: ::: Web.Config Compilation error :::

    03-04-2009, 3:04 AM

    Are you running on XP / Vista which limits you to a single website? If not then you can create another website simply for running this application and assign it to a different port or create assign the DNS entry to the host headers. If you are limited to a single website and therefore have to run this application as a virtual folder then you could always place a default.aspx in your root which preforms a response.redirect to the virtual folder which would allow you ease of access to the application.

    Hope that helps

  • Re: ::: Web.Config Compilation error :::

    03-09-2009, 12:53 AM

    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.

Page 1 of 1 (13 items)