Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1217
  • Last Modified:

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
0
strickdd
Asked:
strickdd
1 Solution
 
bigphuckinglizardCommented:
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.
0
 
strickddAuthor Commented:
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?
0
 
crisco96Commented:
You probably can't do it unless you create a separate bin folder and copy your bin files there.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now