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.
You can remove predefined section or section group by using <remove> element in the sub sites' web config file. It looks like this:
<configuration>
<configSections>
<remove name="system.web.extensions "/>
<!--
Add your new section or section group
-->
</configSections>
</configuration>
i am really feeling dopey now - i am having a similar issue - i have a silverlight "shell" application with mostly asp.net stuff - when i run and test via Visual Studio Web Developer i have no problems, but when i publish to my site, i get the exact error
as noted in the first note here.
many thanks in advance :o)
cathy
www.earthtechconcepts.com
Earth Tech Concepts, Inc.
haigemini@gm...
1 Post
::: Web.Config Compilation error - Overriding the Web.Config file settings :::
Mar 02, 2009 11:24 AM|LINK
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:
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...
asp.net iis 5.1 Web Server IIS6 ASPX IIS 6 iis 6.0 IIS Configuration Backup Restore
Leo Tang - M...
4161 Posts
Microsoft
Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::
Mar 06, 2009 07:30 AM|LINK
Hi,
You can remove predefined section or section group by using <remove> element in the sub sites' web config file. It looks like this:
<configuration>
<configSections>
<remove name="system.web.extensions "/>
<!--
Add your new section or section group
-->
</configSections>
</configuration>
For more information, please refer to:
<remove> Element for <configSections>
http://msdn.microsoft.com/en-us/library/aa309404(VS.71).aspx
Additionally, you can get more valuable suggestions at ASP.net Forum(the same log in here).
Feedback to us
Develop and promote your apps in Windows Store
tomkmvp
7657 Posts
MVP
Moderator
Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::
Mar 06, 2009 10:58 AM|LINK
I see this is running as ASP.NET 1.1 ... is the root set to ASP.NET 2.0?
http://mvp.support.microsoft.com/
earthtechcon...
2 Posts
Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::
Mar 19, 2009 05:20 PM|LINK
Hi,
i am really feeling dopey now - i am having a similar issue - i have a silverlight "shell" application with mostly asp.net stuff - when i run and test via Visual Studio Web Developer i have no problems, but when i publish to my site, i get the exact error as noted in the first note here.
many thanks in advance :o)
cathy
www.earthtechconcepts.com
Earth Tech Concepts, Inc.
earthtechcon...
2 Posts
Re: ::: Web.Config Compilation error - Overriding the Web.Config file settings :::
Mar 19, 2009 06:23 PM|LINK
www.earthtechconcepts.com
Earth Tech Concepts, Inc.