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 14:24:49 -0400

I meant _if_ the sub is flagged as an app. The issue I raised only happens
if the sub is an app.

-- 
John Saunders
johnwsaundersiii at hotmail
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%23BjVsQBREHA.568@TK2MSFTNGP12.phx.gbl...
> oopss... I mean IIS, not VS
>
> -- 
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
> news:%23qLDO1AREHA.3124@TK2MSFTNGP12.phx.gbl...
> > "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
    ... I meant _if_ the sub is flagged as an app. ... > "John Saunders" wrote in message ... >> johnwsaundersiii at hotmail ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple web.config files in a virtual directory
    ... IF it's an "app" then all bets are off. ... be "re-set" in a sub web.config, only once in the root one. ... "John Saunders" wrote in message ... >> Curt Christianson ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Multiple web.config files in a virtual directory
    ... IF it's an "app" then all bets are off. ... be "re-set" in a sub web.config, only once in the root one. ... "John Saunders" wrote in message ... >> Curt Christianson ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.Net Classes
    ... but you should learn what a class is, inheritance, etc. before you proceed. ... John Saunders ... johnwsaundersiii at hotmail ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms auth and session question...
    ... "John Saunders" wrote in message ... I made the following base class and inherit from it and get the deisnger ... End Sub ... Dim oTemp As Object ...
    (microsoft.public.dotnet.framework.aspnet)