Web.config has to sit in root

C

Chris

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.
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Chris said:
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.
 
C

Chris

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top