Re: Forms authentication in a subfolder problem, please help
From: John Saunders (john.saunders)
Date: 10/30/03
- Next message: Dinis Cruz: "Security issues with Asp.Net in Shared Hosting Environments"
- Previous message: Kris van der Mast: "Forms authentication in a subfolder problem, please help"
- In reply to: Kris van der Mast: "Forms authentication in a subfolder problem, please help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 30 Oct 2003 16:53:25 -0500
"Kris van der Mast" <kris.vandermast@skynet.be> wrote in message
news:eurm9lxnDHA.1284@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I've created a little site for my sports club. In the root folder there
are
> pages that are viewable by every anonymous user but at a certain subfolder
> my administration pages should be protected by forms authentication.
>
> When I create forms authentication at root level it works but when I move
my
> code up to the subfolder I get this error:
>
> Server Error in '/TestProjects/FormsAuthenticationTestingArea'
Application.
> --------------------------------------------------------------------------
-- > ---- > > Configuration Error > Description: An error occurred during the processing of a configuration file > required to service this request. Please review the specific error details > below and modify your configuration file appropriately. > > Parser Error Message: 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. > > Source Error: > > > Line 12: /> > Line 13: > Line 14: <authentication mode="Forms"> > Line 15: <forms loginUrl="loginnew.aspx"/> > Line 16: </authentication> > > > Source File: > c:\inetpub\wwwroot\TestProjects\FormsAuthenticationTestingArea\administratio > npages\web.config Line: 14 This error usually means what it says. Is your subdirectory configured as an application in IIS? -- John
- Next message: Dinis Cruz: "Security issues with Asp.Net in Shared Hosting Environments"
- Previous message: Kris van der Mast: "Forms authentication in a subfolder problem, please help"
- In reply to: Kris van der Mast: "Forms authentication in a subfolder problem, please help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|