Re: Multiple web.config files in a virtual directory
From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 05/27/04
- Next message: David Coe, MCP: "RE: Need help with impersonating for GetCurrentProcess call."
- Previous message: Joe: "Re: Forms Authentication and classic ASP"
- In reply to: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Next in thread: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Reply: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Reply: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: David Coe, MCP: "RE: Need help with impersonating for GetCurrentProcess call."
- Previous message: Joe: "Re: Forms Authentication and classic ASP"
- In reply to: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Next in thread: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Reply: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Reply: Curt_C [MVP]: "Re: Multiple web.config files in a virtual directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|