web.config needs to be in the /root/ of your web application. That means you can't put the login page one folder higher in the website, because that would be one folder higher than the root of your web application.
15seconds.com also has a ASP.Net list - suggest you post future ASP.net questions there - you'll probably get a faster/better response. Cheers Ken ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From: "Falls, Travis D (CASD, IT)" <[EMAIL PROTECTED]> Subject: Forms authentication : : I am trying to use forms authentication. I have added this to a folder that : I want to protect. : (In my web.config file within my folder I want to protect : <authentication mode="Forms"> : <forms name="UnsygnedLogged" loginUrl="../login.aspx" /> : </authentication> : : : I am getting this error when I call a file within that folder : : 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 31: --> : Line 32: : Line 33: <authentication mode="Forms"> : Line 34: <forms name="UnsygnedLogged" : loginUrl="../login.aspx" /> : Line 35: : : : Source File: C:\Inetpub\wwwroot\unsygned20020826\loggedIn\web.config : Line: 33 : : : any ideas on what I need to to to get forms authentication to work? : --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
