Re: Inherited web.config ASP.NET 2.0
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Thu, 10 Aug 2006 09:31:55 -0400
re:
Do you mean if the sub directories are configured as "application", they
won't inherit the web.config setting from their parent (no matter they're
physical sub dir or the parent virtual dir or not)?
Steven,
are you telling me that in this physical/virtual directory structure :
c:\inetpub\wwwroot -not an application
c:\inetpub\wwwroot\group1 - not an application
c:\inetpub\wwwroot\group1\site1 - IIS Application
c:\inetpub\wwwroot\group1\site2 - IIS Application
c:\inetpub\wwwroot\group1\site3 - IIS Application
....that site1, site2 and site3 will inherit from c:\inetpub\wwwroot 's
or c:\inetpub\wwwroot\group1 's web.config ?
*That* is the structure I was commenting on.
I *never* configure wwwroot as an application,
precisely because I don't want to run the risk of inheritance ambiguities.
I have always thought that Application roots are the topmost level
for web.config inheritance boundaries, unless the IIS Application is nested,
in which case, yes, the Application will inherit from its parent Application. .
Maybe I'm not understanding something about the scenario ?
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:7N4BxXHvGHA.1992@xxxxxxxxxxxxxxxxxxxxxxxx
Hi Juan,
Thanks for your effort.
As for your following comments:
=====================
"If you place a setting in inetpub\wwwroot\group1\web.config,
the setting will be local to the \group1 directory, but the
subdirectories below it will inherit from their application's root
directory."
( working on the assumption that the subdirectories are separate apps,
therefore they each have separate application roots, so they would *not*
inherit from a directory placed higher than them in the directory tree)
======================
Do you mean if the sub directories are configured as "application", they
won't inherit the web.config setting from their parent (no matter they're
physical sub dir or the parent virtual dir or not)?
Actually, you can see(in the screenshot I attached) that those leaf
applications directories( "DemoWebsite", "IISTestSite", "NewTestSite"....)
are all configured as single application themselves. However, they can
still get the settings from the web.config files in the super path(in V2,
in ASPNET in Websites super parent dirs). The page in those applications
are accesed through the following style url.
http://localhost/ASPNET/V2/WebSites/leafwebappname/Default.aspx
In addition, I've also tested through a linked sub application (its
physical directory is outside the parent application/virtual dir 's
physical path, see the "linkedsubweb" in my new attached screenshot), it
can also get the inherited values from parent web.configs.
Therefore, I still think web.config's inheritance in a IIS virtual
directory tree is certainly supported.
So far I'm still wondering what's the exact directory structure in IIS and
physical disk in Ben's test environment.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Inherited web.config ASP.NET 2.0
- From: Steven Cheng[MSFT]
- Re: Inherited web.config ASP.NET 2.0
- References:
- Inherited web.config ASP.NET 2.0
- From: Ben
- RE: Inherited web.config ASP.NET 2.0
- From: Steven Cheng[MSFT]
- Re: Inherited web.config ASP.NET 2.0
- From: Ben
- Re: Inherited web.config ASP.NET 2.0
- From: Juan T. Llibre
- Re: Inherited web.config ASP.NET 2.0
- From: Steven Cheng[MSFT]
- Re: Inherited web.config ASP.NET 2.0
- From: Juan T. Llibre
- Re: Inherited web.config ASP.NET 2.0
- From: Steven Cheng[MSFT]
- Inherited web.config ASP.NET 2.0
- Prev by Date: Re: Removing items from an arraylist
- Next by Date: perfomance question
- Previous by thread: Re: Inherited web.config ASP.NET 2.0
- Next by thread: Re: Inherited web.config ASP.NET 2.0
- Index(es):
Relevant Pages
|
Loading