Contents
Can we have two web config files for a Web application?
Yes you can have two web. config files in application. There are situations where your application is divided in to modules and for every module you need separate configuration. For example if you have a application which has two modules lets say accounts and sales.
How many Web config files can I have in an application?
Yes you can have two web. config files in application. There are situations where your application is divided in to modules and for every module you need separate configuration.
How do I use multiple Web config?
how to use multiple web. config files in asp.net application or working with more than one web. config file in asp.net application
- First create one new web application that contains Default.aspx page and one web.config file.
- After that write the following code in root folder web.config file appsettings section like this.
Can a supplemental file not be applied to web config?
Regarding your supplemental file not being applied to web.config: From MSDN: “You can retroactively apply changes to the web.config files of the server by running the copyappbincontent Stsadm command-line operation. You must run the operation on each front-end web server in the deployment.”
Can a.xml file be used as a web config file?
A major advantage to using an .xml file to supplement the web.config file is that customizations are not lost when SharePoint Foundation is upgraded and the web.config file is overwritten.
How to make changes to web config file?
Make changes to web.config settings using either the method described in How to: Create a Supplemental .config File or the method described in How to: Add and Remove Web.config Settings Programmatically. With either method, your custom settings can be reapplied post-upgrade.
When a SharePoint Foundation Web application is created, a top-level web.config file is placed within the content root folder of the Web application, which defines configuration settings for the server such as HTTP handling for Web Parts.