Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing sections from Web.config
Message
From
06/11/2009 08:30:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Removing sections from Web.config
Environment versions
Environment:
ASP.NET
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01433550
Message ID:
01433550
Views:
97
Hi all,

I have a website hosted with a web.config file. In the config file there is sections defined for databases and databasesets. Now I am putting another web application behind this one so essentially if you navigate to a subfolder it is a virtual directory and a different web application. I have another web config file there with the same sections defined. I removed the databasesets definition under configSections as I don't need it but the databases section I do need. It is causing an error as it is already defined in the first web.config.

How do I clear or remove it before re-defining the section in the second web.config?

I suppose I could add my second configuration of databases to the first web.config and just remove it from the second one but that isn't very friendly for having the configurations near the application.
Thanks for any help on that.
Tim
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform