Re: Inherited web.config ASP.NET 2.0



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.

Attachment: new_test_sh.JPG
Description: Binary data



Relevant Pages

  • Re: Inherited web.config ASP.NET 2.0
    ... won't inherit the web.config setting from their parent (no matter they're ... physical sub dir or the parent virtual dir or not)? ... in which case, yes, the Application will inherit from its parent Application. ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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: 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)
  • Re: UFS2 limits
    ... meaning the maximum number of hardlinks allowed is 32767. ... Each subdirectory created contains a hardlink to its parent, ... limiting the number of subdirectories to a single directory to less than 32767. ... directories you can have on a single filesystem based on how many inodes ...
    (freebsd-questions)

Loading