Re: Inherited web.config ASP.NET 2.0



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.


.



Relevant Pages

  • Re: Recursive SQL query?
    ... In the OP's design it is clear that NULL means "inherit from parent". ... NULL foo ... Now change this to a design with an explicit property table which linked ...
    (perl.dbi.users)
  • Re: Inherited web.config ASP.NET 2.0
    ... (working on the assumption that the subdirectories are separate apps, ... inherit from a directory placed higher than them in the directory tree) ... Do you mean if the sub directories are configured as "application", ... won't inherit the web.config setting from their parent (no matter they're ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Event ID 8315
    ... To inherit from the parent it needs to be set to 0 or not set. ... already tried ADmodify tool, but as soon as ADmodify run into an ... account which has this attribute tuned on, ADmodify stops processing ...
    (microsoft.public.windows.server.active_directory)
  • Re: Enum only files/folders where explicit NTFS rights have been s
    ... AccessEnum "differ from parent" feature is not so much evolved, ... only comparing effectives rights listing to the parent rights listing, ... not what SHOULD inherit OR NOT (like for folders rights where "Apply ...
    (microsoft.public.security)

Loading