Edit Web.Config outside of root directory

  • Thread starter Thread starter Erica
  • Start date Start date
E

Erica

I have a sub domain application that is secure and on the same server a
public site which is not. From the secure site I need to edit the web.config
file. I tried just using the direct path (c:/some folder/anotherfolder/) to
get to the web.config file but I get an error that it is not a valid virtual
path. Can someone give me an example of how I should do this?
 
Erica said:
I have a sub domain application that is secure and on the same server
a public site which is not. From the secure site I need to edit the
web.config file. I tried just using the direct path (c:/some
folder/anotherfolder/) to get to the web.config file but I get an
error that it is not a valid virtual path. Can someone give me an
example of how I should do this?

Using the correct path separators might help. Also, the user account the
subdomain app runs under will need permission to modify the file. I have a
suspicion that you can temporarily impersonate another account while writing
the changes because you shouldn't give the network user account modify
rights to things like that.

Andrew
 
Back
Top