Re: Forms authentication does not work......

From: Beth Breidenbach (bbreidenbach@mindspring.com)
Date: 12/29/02


From: "Beth Breidenbach" <bbreidenbach@mindspring.com>
Date: Sat, 28 Dec 2002 20:59:57 -0800


The first authentication tag has a closing slash in it. Remove this and
life may be better.

"Chetan Handa" <asp_dot_net@hotmail.com> wrote in message
news:etqJrjprCHA.2260@TK2MSFTNGP10...
> Yes,
> following is my web.config file, I hope we figure out something from
> this......
>
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <appSettings>
> <add key="connstr"
> value="server=localhost;Trusted_Connection=true;database=northcopy" />
> <add key="trip_connection"
> value="server=localhost;Trusted_Connection=true;database=trip"/>
> </appSettings>
>
> <system.web>
> <compilation defaultLanguage="vb" debug="true" />
> <customErrors mode="RemoteOnly" />
> <authentication mode="Forms" />
> <forms name="form" loginUrl="login.aspx" protection="All" path="/"
> />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> <trace enabled="false" requestLimit="10" pageOutput="false"
> traceMode="SortByTime" localOnly="true" />
> <sessionState
> mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424"
> sqlConnectionString="data source=127.0.0.1;user id=sa;password="
> cookieless="false"
> timeout="20"
> />
> <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
> </system.web>
> </configuration>
>
>
>
>
>
>
>
> "Beth Breidenbach" <beth.breidenbach@getronics.com> wrote in message
> news:#UO$$PfrCHA.432@TK2MSFTNGP10...
> > Can you post your Authentication section?
> >
> >
> > "asp_dot_net" <asp_dot_net@hotmail.com> wrote in message
> > news:u4F6QicrCHA.1656@TK2MSFTNGP09...
> > > Firstly, i like to say thanks for the quick reply....
> > > Yes, I do have the forms within the authentication section of the
> > > web.config file.
> > >
> > >
> > > "Cowboy (Gregory A. Beamer)"
> > <N0SpamMPleezEgbworld@comcast.netN0SpamMPleezE>
> > > wrote in message news:OWMIv6brCHA.1808@TK2MSFTNGP09...
> > > > Do you have forms inside the <Authentication> section? as in:
> > > >
> > > > <authentication mode="Forms">
> > > > <forms name="trip" loginUrl="login.aspx" protection="All"
path="/"
> > />
> > > > </authentication>
> > > >
> > > > --
> > > > Gregory A. Beamer
> > > > MVP; MCP: +I, SE, SD, DBA
> > > > Author: ADO.NET and XML: ASP.NET on the Edge
> > > >
> > > >
> > >
> >
>
****************************************************************************
> > > > ****
> > > > Think outside the box!
> > > >
> > >
> >
>
****************************************************************************
> > > > ****
> > > > "asp_dot_net" <asp_dot_net@hotmail.com> wrote in message
> > > > news:#AorgkbrCHA.428@TK2MSFTNGP09...
> > > > > I get the following error message in web config file when I use
> forms
> > > > > authentication.
> > > > > I get this error whenI add this to the authentication section
> > > > >
> > > > > <forms name="trip" loginUrl="login.aspx" protection="All" path="/"
> />
> > > > >
> > > > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!Error
> > > > > message!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > > > >
> > > > > Unrecognized configuration section 'forms'
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>