|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Authentication mode in web.config causing crash.I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below or is there something more sinister going on. Any help greatly appreciated. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <customErrors mode="Off" /> * <authentication mode="Forms"> * <forms name="AuthCookie" loginUrl="login.aspx" /> * </authentication> </system.web> <location path="MyMobile.aspx"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> </configuration> Thanks, John Lynagh ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>S0zRyqi0VEKZKYfouj3IgA==</Id> John Lynagh via .NET 247 wrote:
Show quoteHide quote > Hi there, My tag looks like this> I am having serious problems with my web.config file. When the authentication lines are added below my application crashes. When they are removed it works fine. Is there syntax error below or is there something more sinister going on. > > Any help greatly appreciated. > > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > <system.web> > <customErrors mode="Off" /> > * <authentication mode="Forms"> > * <forms name="AuthCookie" loginUrl="login.aspx" /> > * </authentication> > </system.web> > > <location path="MyMobile.aspx"> > <system.web> > <authorization> > <deny users="?" /> > </authorization> > </system.web> > </location> > </configuration> > > > > Thanks, > John Lynagh > > ----------------------- > Posted by a user from .NET 247 (http://www.dotnet247.com/) > > <Id>S0zRyqi0VEKZKYfouj3IgA==</Id> <forms name=".blahblah" loginUrl="/login.aspx" protection="All" timeout="20" path="/"></forms> You have *two* <system.web> sections in your web.config.
Consolidate all your settings in *one* <system.web> section. Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ====================== Show quoteHide quote "John Lynagh via .NET 247" <anonym***@dotnet247.com> wrote in message news:%23X2zPIdbFHA.2960@TK2MSFTNGP09.phx.gbl... > Hi there, > I am having serious problems with my web.config file. When the authentication lines are > added below my application crashes. When they are removed it works fine. Is there syntax > error below or is there something more sinister going on. > > Any help greatly appreciated. > > > <?xml version="1.0" encoding="utf-8" ?> > <configuration> > <system.web> > <customErrors mode="Off" /> > * <authentication mode="Forms"> > * <forms name="AuthCookie" loginUrl="login.aspx" /> > * </authentication> > </system.web> > > <location path="MyMobile.aspx"> > <system.web> > <authorization> > <deny users="?" /> > </authorization> > </system.web> > </location> > </configuration> > > > > Thanks, > John Lynagh > > ----------------------- > Posted by a user from .NET 247 (http://www.dotnet247.com/) > > <Id>S0zRyqi0VEKZKYfouj3IgA==</Id> > You have *two* <system.web> sections in your web.config. Consolidate He does?> all your settings in *one* <system.web> section. Show quoteHide quote >> <configuration> He's got a second <system.web> under the <location> element, which is fine.>> <system.web> >> <customErrors mode="Off" /> >> * <authentication mode="Forms"> >> * <forms name="AuthCookie" loginUrl="login.aspx" /> >> * </authentication> >> </system.web> >> <location path="MyMobile.aspx"> >> <system.web> >> <authorization> >> <deny users="?" /> >> </authorization> >> </system.web> >> </location> >> </configuration> > I am having serious problems with my web.config file. When the What's the exception thrown?> authentication lines are added below my application crashes. -Brock DevelopMentor http://staff.develop.com/ballen Hmmm...you're right.
I should go out and have a few beers on this Friday afternoon. Thanks! Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ====================== Show quoteHide quote "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message news:872038632540177230044784@msnews.microsoft.com... >> You have *two* <system.web> sections in your web.config. Consolidate >> all your settings in *one* <system.web> section. > > He does? > >>> <configuration> >>> <system.web> >>> <customErrors mode="Off" /> >>> * <authentication mode="Forms"> >>> * <forms name="AuthCookie" loginUrl="login.aspx" /> >>> * </authentication> >>> </system.web> >>> <location path="MyMobile.aspx"> >>> <system.web> >>> <authorization> >>> <deny users="?" /> >>> </authorization> >>> </system.web> >>> </location> >>> </configuration> > > He's got a second <system.web> under the <location> element, which is fine. > >> I am having serious problems with my web.config file. When the >> authentication lines are added below my application crashes. > > What's the exception thrown? > > -Brock > DevelopMentor > http://staff.develop.com/ballen > > > > > Hmmm...you're right. I'll join you :)> > I should go out and have a few beers on this Friday afternoon. -Brock DevelopMentor http://staff.develop.com/ballen Nobody invited me :(
-- Show quoteHide quoteScott http://www.OdeToCode.com/blogs/scott/ On Fri, 10 Jun 2005 13:53:56 -0700, Brock Allen <ballen@NOSPAMdevelop.com> wrote: >> Hmmm...you're right. >> >> I should go out and have a few beers on this Friday afternoon. > >I'll join you :) > >-Brock >DevelopMentor >http://staff.develop.com/ballen > > >
Other interesting topics
Do i loose the power of asp.net if i use a custom extension (not .aspx) with IHttpHandlerFactory
what is Request.ServerVariables how to make VS auto suggest properties during dev Dataview returns 0 rows Newbie on Session State Unable to map the debug start page URL to a machine name embeding wmp w/instant play?l User Controls in 2.0 Controling table layout dynamically. another ctp? |
|||||||||||||||||||||||