Re: About Web.config

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Wang Jie (midnightfrank_at_THIS_SHOULD_BE_HOTMAIL_DOT_COM.NoSpam)
Date: 08/27/04


Date: Thu, 26 Aug 2004 18:19:03 -0700

Thank you for the tip. It works.

"Curt_C [MVP]" wrote:

> look at the <location> tag for the web.config. You can set things like
> security on a per file, and I believe per folder, basis there.
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Wang Jie" <midnightfrank@THIS_SHOULD_BE_HOTMAIL_DOT_COM.NoSpam> wrote in
> message news:EDFE7343-0FFE-4FF0-A96E-1BD53F892CD7@microsoft.com...
> > Hi.
> >
> > I have a web app that uses Forms auth in root Web.config, users must login
> > to access asp.net resources. Now, I want one of the sub directory can be
> > accessed anonymously. I found that if I just put a web.config which sets
> > <authentication mode="None" /> in that sub dir will cause a Configuration
> > Error ( It is an error to use a section registered as
> > allowDefinition='MachineToApplication' beyond application level. This
> > error
> > can be caused by a virtual directory not being configured as an
> > application
> > in IIS.), but I have no idea how to deal with it.
> >
> > Anybody can help me out?
> >
> > Thanks!
>
>
>