Re: Multiple web.config files in a virtual directory

From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 05/27/04


Date: Thu, 27 May 2004 13:08:55 -0400


"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:udY9AGAREHA.3612@TK2MSFTNGP10.phx.gbl...
> yes, but you are limited what can be in the second one... usually thought
> its better to have the ONE in the root and use the <location> tags to
> explicitely handle things in the subfolders

Curt, what are the limitations on the web.config in the subfolder?

The only limitation I'm aware of is an issue with assembly references if the
sub-folder is also an application. If the main web.config uses

<httpModules>
    <add name="MyModule" type="MyNamespace.MyModule, MyAssembly" />
</httpModules>

Then the subapplication will be looking for a SubApp\bin\MyAssembly.dll. You
can add a <remove name="MyModule" /> to the sub-web.config, but it's already
too late - ASP.NET will be looking for MyAssembly.dll before it gets around
to processing your <remove>. The workaround is to place a dummy
MyAssembly.dll in SubApp\bin.

-- 
John Saunders
johnwsaundersiii at hotmail


Relevant Pages

  • Re: Multiple web.config files in a virtual directory
    ... > explicitely handle things in the subfolders ... Curt, what are the limitations on the web.config in the subfolder? ... johnwsaundersiii at hotmail ...
    (microsoft.public.dotnet.framework.aspnet)
  • 255 characters for subdirectories
    ... I noticed with subfolders, if you exceeded a certain length you couldn't ... Now I know my clients should be more succinct when naming folders but I ... Is there a way to do anything about the limitations? ... PS our workstations are all XP and our servers are all 2003. ...
    (microsoft.public.windows.server.general)
  • Re: NTFS copy to FAT
    ... > Maximum number of files and subfolders within a single folder 65,534 ... >> See here for file size limitations for NTFS, FAT, and FAT32. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Groundsman - public response, kinda long
    ... > Clint, I'm sure you'll agree that *a man's got to know his ... > limitations*, so please proofread your next post more carefully. ... Don't you get it, Curt? ...
    (rec.motorcycles.harley)