Re: Forms authentication in a subfolder problem, please help

From: John Saunders (john.saunders)
Date: 10/30/03


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


Relevant Pages

  • Re: Forms Authentication Error
    ... "This error can be caused by a virtual directory not being configured as an ... where you have configured this section is not the root folder of the web ... IIS web application within IIS. ... An error occurred during the processing of a configuration ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: error in generated project
    ... if its a sample u just copied into the wwwroot folder to run, ... Services&Applications>IIS>WebSite> Default WebSite) and browse to find ... An error occurred during the processing of a configuration ... > Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I configure IIS for the following?
    ... Each virtual directory has to be set up as an application. ... An error occurred during the processing of a configuration ... application in IIS. ... Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I configure IIS for the following?
    ... Internet Services Manager and set up each directory as an application. ... versions without having them as a long list in IIS. ... An error occurred during the processing of a configuration ... Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms authentication in a subfolder problem, please help
    ... In the root folder there ... >> my administration pages should be protected by forms authentication. ... >> below and modify your configuration file appropriately. ... > application in IIS? ...
    (microsoft.public.dotnet.framework.aspnet.security)