468,278 Members | 1,571 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,278 developers. It's quick & easy.

Web.config has to sit in root

I have a web app which sit in a virtual but is a sub folder of the web tree.
I thought if I put the web.config in the virtual it would read from there
but it seems to only accept it if the web.config is in the root. Does my
application's virtual have to be configured as an application.

Will this cause any problems sharing things like sessions across different
virtuals configured as different applications. Regards, Chris.
Feb 1 '07 #1
2 1436
Chris wrote:
I have a web app which sit in a virtual but is a sub folder of the web tree.
I thought if I put the web.config in the virtual it would read from there
but it seems to only accept it if the web.config is in the root. Does my
application's virtual have to be configured as an application.

Will this cause any problems sharing things like sessions across different
virtuals configured as different applications. Regards, Chris.
You can have a web.config file in each folder, if you like, but
application level settings can only be set in a web.config file that is
in the application root.

If your virtual folder is not an application folder, your application
root is not the virtual folder.

Sessions are local to the applications, so you can't share session
vatiables between applications.

--
Göran Andersson
_____
http://www.guffa.com
Feb 2 '07 #2
When I develop on my test machine using file system development in VS 2005.
It does it in a virtual folder which is the root. My production application
has to sit in a virtual which is one down from the root. When I put it live
I have to copy all the assembies to the root bin directory. How can I make
deployment simpler. My application has to share state with the rest of the
system. Regards, Chris.
"Göran Andersson" <gu***@guffa.comwrote in message
news:Oe**************@TK2MSFTNGP06.phx.gbl...
Chris wrote:
>I have a web app which sit in a virtual but is a sub folder of the web
tree. I thought if I put the web.config in the virtual it would read from
there but it seems to only accept it if the web.config is in the root.
Does my application's virtual have to be configured as an application.

Will this cause any problems sharing things like sessions across
different virtuals configured as different applications. Regards, Chris.

You can have a web.config file in each folder, if you like, but
application level settings can only be set in a web.config file that is in
the application root.

If your virtual folder is not an application folder, your application root
is not the virtual folder.

Sessions are local to the applications, so you can't share session
vatiables between applications.

--
Göran Andersson
_____
http://www.guffa.com

Feb 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Charlie Smith | last post: by
25 posts views Thread by n3crius | last post: by
2 posts views Thread by Luke Dalessandro | last post: by
3 posts views Thread by gerry | last post: by
10 posts views Thread by eagle | last post: by
5 posts views Thread by =?Utf-8?B?bWNxd2VydHk=?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
1 post views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.