473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1595
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Charlie Smith | last post by:
Hello All I'm writing a little app for my personal use and want to store the configuration data in an xml file. I found PEAR::Config that lets me read the config data into my app. But so far,...
25
by: n3crius | last post by:
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with...
3
by: Jiong Feng | last post by:
Hi, I have a question. WE have a web application in web root. And also we have a virtual directory library application. If we change root web.config, the root application will restart....
0
by: Johannes H?drich | last post by:
Hello folks, i've got a tough problem with configuration the CMAB in my asp.net application. Following scenario is given: root directory (ASP.NET Application) |- web.config (access from CMAB...
9
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem....
5
by: feng | last post by:
Hi, We just converted our VB.Net Windows exe project from VS.Net 2002 to VS.Net 2003 and ran into a problem. the MyApp.exe.config file that we use for our customized configuration settings is...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
3
by: gerry | last post by:
Is there any way to prevent web.config inheritance in nested web applications ? Here is the scenario, a 3rd party asp.net web application installed on an asp.net intranet site :...
10
by: eagle | last post by:
I have a web.config in my application that contains the connection strings to all my datasources. I want to move these connection strings to another web config up the folder hierarchy so that all...
5
by: =?Utf-8?B?bWNxd2VydHk=?= | last post by:
Hello, I'm trying to enable an error handling package at the root of my web server by editing this file: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config In the httpHandlers...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.