Link to home
Start Free TrialLog in
Avatar of strickdd
strickddFlag for United States of America

asked on

Change Web.Config Location

Is there a way to move the web.config from the root of the site to another folder location? I need to do this because server config policy at my work will not allow direct write access to a folder on the server. They will only allow write access to a virtual folder located on another server. Any ideas?

Thanks in advance!
strickdd
Avatar of bigphuckinglizard
bigphuckinglizard

if you create an application on the virtual folder in iis it'll pick up a web.config file there, but some sections can only be used in the site-wide .config file, which has to be in the root of the website.
Avatar of strickdd

ASKER

So I create the virtual directory, add the web.config to it with only the settings I want to dynamically change. How do I actually reference this web.config then?
ASKER CERTIFIED SOLUTION
Avatar of crisco96
crisco96
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial