Ask a Question related to ASP.NET Security, Design and Development.
-
dave #1
RedirectFromLogin Goes Nowhere?
Can anyone shed any light on the following:
I have forms authentication setup within the web.config file (see below)
which protects the entire website, which brings up the login page - OK.
However, even though I have been logged in and authenticated it is still
returning to the login page. However if i log in again it will try to go
off to the originially specified location, but never seems to get there?
If i then directly type in the original URL i tried in the very 1st place it
resolves fine, as i am now authenticated.
This is extremely baffling - hope someone can help!
Web Config settings.
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages smartNavigation="true"/>
<compilation debug="true"/>
<authentication mode="Forms" >
<forms name="App1" path="/" loginUrl="login.aspx" >
<credentials passwordFormat="Clear">
<user name="tester" password="testing" />
</credentials>
</forms>
</authentication>
<authorization>
<allow users="tester"/>
<deny users="?"/>
</authorization>
</system.web>
</configuration>
dave Guest
-
Jim Cheshire [MSFT] #2
RE: RedirectFromLogin Goes Nowhere?
Dave,
This web.config should work although you should reverse your <allow> and
<deny> tags in the <authorization> element.
Jim Cheshire [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------microsoft.public.dotnet.framework.aspnet.security: 7513>From: "dave" <dave@edin.co.uk>
>Subject: RedirectFromLogin Goes Nowhere?
>Date: Tue, 11 Nov 2003 11:07:55 -0000
>Lines: 43
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com 81.128.209.62
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gblit>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Can anyone shed any light on the following:
>
>I have forms authentication setup within the web.config file (see below)
>which protects the entire website, which brings up the login page - OK.
>
>However, even though I have been logged in and authenticated it is still
>returning to the login page. However if i log in again it will try to go
>off to the originially specified location, but never seems to get there?
>
>If i then directly type in the original URL i tried in the very 1st place>resolves fine, as i am now authenticated.
>
>This is extremely baffling - hope someone can help!
>
>
>Web Config settings.
>
><configuration>
><system.web>
> <customErrors mode="Off"/>
> <pages smartNavigation="true"/>
> <compilation debug="true"/>
>
><authentication mode="Forms" >
><forms name="App1" path="/" loginUrl="login.aspx" >
> <credentials passwordFormat="Clear">
> <user name="tester" password="testing" />
> </credentials>
></forms>
></authentication>
>
>
> <authorization>
> <allow users="tester"/>
> <deny users="?"/>
> </authorization>
></system.web>
>
></configuration>
>
>
>
>
>Jim Cheshire [MSFT] Guest
-
dave #3
Re: RedirectFromLogin Goes Nowhere?
Thanks for that Jim
You are right of course they should ordered differently, but unfortunately
that did not make any difference...
This all works fine on my local pc and server, but not on my ISP's dotnet
site (Fasthosts) - is there anything i can ask them that might be causing
this?
Thanks again...
Cheers
Dave
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...81.128.209.62> Dave,
>
> This web.config should work although you should reverse your <allow> and
> <deny> tags in the <authorization> element.
>
> Jim Cheshire [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
> --------------------> >From: "dave" <dave@edin.co.uk>
> >Subject: RedirectFromLogin Goes Nowhere?
> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >Lines: 43
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com> microsoft.public.dotnet.framework.aspnet.security: 7513> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl> it> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Can anyone shed any light on the following:
> >
> >I have forms authentication setup within the web.config file (see below)
> >which protects the entire website, which brings up the login page - OK.
> >
> >However, even though I have been logged in and authenticated it is still
> >returning to the login page. However if i log in again it will try to go
> >off to the originially specified location, but never seems to get there?
> >
> >If i then directly type in the original URL i tried in the very 1st place>> >resolves fine, as i am now authenticated.
> >
> >This is extremely baffling - hope someone can help!
> >
> >
> >Web Config settings.
> >
> ><configuration>
> ><system.web>
> > <customErrors mode="Off"/>
> > <pages smartNavigation="true"/>
> > <compilation debug="true"/>
> >
> ><authentication mode="Forms" >
> ><forms name="App1" path="/" loginUrl="login.aspx" >
> > <credentials passwordFormat="Clear">
> > <user name="tester" password="testing" />
> > </credentials>
> ></forms>
> ></authentication>
> >
> >
> > <authorization>
> > <allow users="tester"/>
> > <deny users="?"/>
> > </authorization>
> ></system.web>
> >
> ></configuration>
> >
> >
> >
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #4
Re: RedirectFromLogin Goes Nowhere?
Dave,
I would check to see if it's really parsing your web.config. Try adding a
<foo> tag to your web.config and see if it throws an error.
Jim Cheshire [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>microsoft.public.dotnet.framework.aspnet.security: 7527>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Tue, 11 Nov 2003 20:00:40 -0000
>Lines: 96
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com 81.128.209.62
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gblgo>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Thanks for that Jim
>
>You are right of course they should ordered differently, but unfortunately
>that did not make any difference...
>
>This all works fine on my local pc and server, but not on my ISP's dotnet
>site (Fasthosts) - is there anything i can ask them that might be causing
>this?
>
>Thanks again...
>
>Cheers
>
>Dave
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...>81.128.209.62>> Dave,
>>
>> This web.config should work although you should reverse your <allow> and
>> <deny> tags in the <authorization> element.
>>
>> Jim Cheshire [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>> -------------------->> >From: "dave" <dave@edin.co.uk>
>> >Subject: RedirectFromLogin Goes Nowhere?
>> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >Lines: 43
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com>> microsoft.public.dotnet.framework.aspnet.security: 7513>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Can anyone shed any light on the following:
>> >
>> >I have forms authentication setup within the web.config file (see below)
>> >which protects the entire website, which brings up the login page - OK.
>> >
>> >However, even though I have been logged in and authenticated it is still
>> >returning to the login page. However if i log in again it will try toplace>> >off to the originially specified location, but never seems to get there?
>> >
>> >If i then directly type in the original URL i tried in the very 1st>>> it>>>> >resolves fine, as i am now authenticated.
>> >
>> >This is extremely baffling - hope someone can help!
>> >
>> >
>> >Web Config settings.
>> >
>> ><configuration>
>> ><system.web>
>> > <customErrors mode="Off"/>
>> > <pages smartNavigation="true"/>
>> > <compilation debug="true"/>
>> >
>> ><authentication mode="Forms" >
>> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> > <credentials passwordFormat="Clear">
>> > <user name="tester" password="testing" />
>> > </credentials>
>> ></forms>
>> ></authentication>
>> >
>> >
>> > <authorization>
>> > <allow users="tester"/>
>> > <deny users="?"/>
>> > </authorization>
>> ></system.web>
>> >
>> ></configuration>
>> >
>> >
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest
-
dave #5
Re: RedirectFromLogin Goes Nowhere?
Yep, that throws an error!
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...81.128.209.62> Dave,
>
> I would check to see if it's really parsing your web.config. Try adding a
> <foo> tag to your web.config and see if it throws an error.
>
> Jim Cheshire [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
>
> --------------------> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>> >From: "dave" <dave@edin.co.uk>
> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >Date: Tue, 11 Nov 2003 20:00:40 -0000
> >Lines: 96
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.comunfortunately> microsoft.public.dotnet.framework.aspnet.security: 7527> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Thanks for that Jim
> >
> >You are right of course they should ordered differently, butand> >that did not make any difference...
> >
> >This all works fine on my local pc and server, but not on my ISP's dotnet
> >site (Fasthosts) - is there anything i can ask them that might be causing
> >this?
> >
> >Thanks again...
> >
> >Cheers
> >
> >Dave
> >
> >
> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...> >> Dave,
> >>
> >> This web.config should work although you should reverse your <allow>below)> >81.128.209.62> >> <deny> tags in the <authorization> element.
> >>
> >> Jim Cheshire [MSFT]
> >> Developer Support
> >> ASP.NET
> >> [email]jamesche@online.microsoft.com[/email]
> >>
> >> This post is provided as-is with no warranties and confers no rights.
> >>
> >> --------------------
> >> >From: "dave" <dave@edin.co.uk>
> >> >Subject: RedirectFromLogin Goes Nowhere?
> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >> >Lines: 43
> >> >X-Priority: 3
> >> >X-MSMail-Priority: Normal
> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
> >> >Xref: cpmsftngxa06.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.security: 7513
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >
> >> >Can anyone shed any light on the following:
> >> >
> >> >I have forms authentication setup within the web.config file (seeOK.> >> >which protects the entire website, which brings up the login page -still> >> >
> >> >However, even though I have been logged in and authenticated it isthere?> go> >> >returning to the login page. However if i log in again it will try to> >> >off to the originially specified location, but never seems to get> place> >> >
> >> >If i then directly type in the original URL i tried in the very 1st>> >> >> it
> >> >resolves fine, as i am now authenticated.
> >> >
> >> >This is extremely baffling - hope someone can help!
> >> >
> >> >
> >> >Web Config settings.
> >> >
> >> ><configuration>
> >> ><system.web>
> >> > <customErrors mode="Off"/>
> >> > <pages smartNavigation="true"/>
> >> > <compilation debug="true"/>
> >> >
> >> ><authentication mode="Forms" >
> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
> >> > <credentials passwordFormat="Clear">
> >> > <user name="tester" password="testing" />
> >> > </credentials>
> >> ></forms>
> >> ></authentication>
> >> >
> >> >
> >> > <authorization>
> >> > <allow users="tester"/>
> >> > <deny users="?"/>
> >> > </authorization>
> >> ></system.web>
> >> >
> >> ></configuration>
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #6
Re: RedirectFromLogin Goes Nowhere?
Dave,
Okay, now we know that we are truly parsing your Web.config.
In order to really troubleshoot this, you really need access to the server.
It would then be best to open a case with us so that we can look into it.
If your host will agree to conference call with us, we can figure out
what's going on.
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
<#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
<mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Wed, 12 Nov 2003 18:24:46 -0000
>Lines: 147
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com 81.128.209.62
>Path:
.phx.gbl!TK2MSFTNGP09.phx.gblmicrosoft.public.dotnet.framework.aspnet.security: 7550>Xref: cpmsftngxa06.phx.gbla>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Yep, that throws an error!
>
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...>> Dave,
>>
>> I would check to see if it's really parsing your web.config. Try addingdotnet>81.128.209.62>> <foo> tag to your web.config and see if it throws an error.
>>
>> Jim Cheshire [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>>
>> -------------------->> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>> >From: "dave" <dave@edin.co.uk>
>> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>>> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >Date: Tue, 11 Nov 2003 20:00:40 -0000
>> >Lines: 96
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com>unfortunately>> microsoft.public.dotnet.framework.aspnet.security: 7527>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Thanks for that Jim
>> >
>> >You are right of course they should ordered differently, but>> >that did not make any difference...
>> >
>> >This all works fine on my local pc and server, but not on my ISP'scausing>> >site (Fasthosts) - is there anything i can ask them that might beto>and>> >this?
>> >
>> >Thanks again...
>> >
>> >Cheers
>> >
>> >Dave
>> >
>> >
>> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
>> >> Dave,
>> >>
>> >> This web.config should work although you should reverse your <allow>>below)>> >> <deny> tags in the <authorization> element.
>> >>
>> >> Jim Cheshire [MSFT]
>> >> Developer Support
>> >> ASP.NET
>> >> [email]jamesche@online.microsoft.com[/email]
>> >>
>> >> This post is provided as-is with no warranties and confers no rights.
>> >>
>> >> --------------------
>> >> >From: "dave" <dave@edin.co.uk>
>> >> >Subject: RedirectFromLogin Goes Nowhere?
>> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >> >Lines: 43
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >81.128.209.62
>> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >> >Xref: cpmsftngxa06.phx.gbl
>> >> microsoft.public.dotnet.framework.aspnet.security: 7513
>> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >
>> >> >Can anyone shed any light on the following:
>> >> >
>> >> >I have forms authentication setup within the web.config file (see>OK.>> >> >which protects the entire website, which brings up the login page ->still>> >> >
>> >> >However, even though I have been logged in and authenticated it is>> >> >returning to the login page. However if i log in again it will try>there?>> go>> >> >off to the originially specified location, but never seems to get>>> place>> >> >
>> >> >If i then directly type in the original URL i tried in the very 1st>>>> >> it
>> >> >resolves fine, as i am now authenticated.
>> >> >
>> >> >This is extremely baffling - hope someone can help!
>> >> >
>> >> >
>> >> >Web Config settings.
>> >> >
>> >> ><configuration>
>> >> ><system.web>
>> >> > <customErrors mode="Off"/>
>> >> > <pages smartNavigation="true"/>
>> >> > <compilation debug="true"/>
>> >> >
>> >> ><authentication mode="Forms" >
>> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> >> > <credentials passwordFormat="Clear">
>> >> > <user name="tester" password="testing" />
>> >> > </credentials>
>> >> ></forms>
>> >> ></authentication>
>> >> >
>> >> >
>> >> > <authorization>
>> >> > <allow users="tester"/>
>> >> > <deny users="?"/>
>> >> > </authorization>
>> >> ></system.web>
>> >> >
>> >> ></configuration>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest
-
dave #7
Re: RedirectFromLogin Goes Nowhere?
Jim
Sorry for the delay been away for a few days.
I have forwarded a request to my ISP (FastHosts) to see if this is something
they will cater.
Will come back to you soonest.
Cheers
Dave
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...server.> Dave,
>
> Okay, now we know that we are truly parsing your Web.config.
>
> In order to really troubleshoot this, you really need access to the81.128.209.62> It would then be best to open a case with us so that we can look into it.
> If your host will agree to conference call with us, we can figure out
> what's going on.
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
>
> --------------------> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>> >From: "dave" <dave@edin.co.uk>
> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >Date: Wed, 12 Nov 2003 18:24:46 -0000
> >Lines: 147
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.comcpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08>> >Path:adding> phx.gbl!TK2MSFTNGP09.phx.gbl> microsoft.public.dotnet.framework.aspnet.security: 7550> >Xref: cpmsftngxa06.phx.gbl> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Yep, that throws an error!
> >
> >
> >
> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...> >> Dave,
> >>
> >> I would check to see if it's really parsing your web.config. Tryrights.> a> dotnet> >81.128.209.62> >> <foo> tag to your web.config and see if it throws an error.
> >>
> >> Jim Cheshire [MSFT]
> >> Developer Support
> >> ASP.NET
> >> [email]jamesche@online.microsoft.com[/email]
> >>
> >> This post is provided as-is with no warranties and confers no rights.
> >>
> >>
> >> --------------------
> >> >From: "dave" <dave@edin.co.uk>
> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
> >> >Lines: 96
> >> >X-Priority: 3
> >> >X-MSMail-Priority: Normal
> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com> >unfortunately> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
> >> >Xref: cpmsftngxa06.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.security: 7527
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >
> >> >Thanks for that Jim
> >> >
> >> >You are right of course they should ordered differently, but> >> >that did not make any difference...
> >> >
> >> >This all works fine on my local pc and server, but not on my ISP's> causing> >> >site (Fasthosts) - is there anything i can ask them that might be> >and> >> >this?
> >> >
> >> >Thanks again...
> >> >
> >> >Cheers
> >> >
> >> >Dave
> >> >
> >> >
> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
> >> >> Dave,
> >> >>
> >> >> This web.config should work although you should reverse your <allow>> >> >> <deny> tags in the <authorization> element.
> >> >>
> >> >> Jim Cheshire [MSFT]
> >> >> Developer Support
> >> >> ASP.NET
> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >>
> >> >> This post is provided as-is with no warranties and confers nocpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl> >> >>
> >> >> --------------------
> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >Subject: RedirectFromLogin Goes Nowhere?
> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >> >> >Lines: 43
> >> >> >X-Priority: 3
> >> >> >X-MSMail-Priority: Normal
> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >81.128.209.62
> >> >> >Path:> to> >below)> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >
> >> >> >Can anyone shed any light on the following:
> >> >> >
> >> >> >I have forms authentication setup within the web.config file (see> >OK.> >> >> >which protects the entire website, which brings up the login page -> >still> >> >> >
> >> >> >However, even though I have been logged in and authenticated it is> >> >> >returning to the login page. However if i log in again it will try>> >there?> >> go
> >> >> >off to the originially specified location, but never seems to get> >> >> >> >
> >> >> >If i then directly type in the original URL i tried in the very 1st
> >> place
> >> >> it
> >> >> >resolves fine, as i am now authenticated.
> >> >> >
> >> >> >This is extremely baffling - hope someone can help!
> >> >> >
> >> >> >
> >> >> >Web Config settings.
> >> >> >
> >> >> ><configuration>
> >> >> ><system.web>
> >> >> > <customErrors mode="Off"/>
> >> >> > <pages smartNavigation="true"/>
> >> >> > <compilation debug="true"/>
> >> >> >
> >> >> ><authentication mode="Forms" >
> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
> >> >> > <credentials passwordFormat="Clear">
> >> >> > <user name="tester" password="testing" />
> >> >> > </credentials>
> >> >> ></forms>
> >> >> ></authentication>
> >> >> >
> >> >> >
> >> >> > <authorization>
> >> >> > <allow users="tester"/>
> >> >> > <deny users="?"/>
> >> >> > </authorization>
> >> >> ></system.web>
> >> >> >
> >> >> ></configuration>
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >>
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #8
Re: RedirectFromLogin Goes Nowhere?
Thanks, Dave. If they agree to it, you will want to call (800) 936-5800
and open a case with us so that we can assist.
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
<#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
<mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
<OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
<yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>81.128.186.244>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Tue, 18 Nov 2003 08:35:03 -0000
>Lines: 218
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.commicrosoft.public.dotnet.framework.aspnet.security: 7606>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
>Xref: cpmsftngxa06.phx.gblsomething>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Jim
>
>Sorry for the delay been away for a few days.
>
>I have forwarded a request to my ISP (FastHosts) to see if this isit.>they will cater.
>
>Will come back to you soonest.
>
>Cheers
>
>Dave
>
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...>server.>> Dave,
>>
>> Okay, now we know that we are truly parsing your Web.config.
>>
>> In order to really troubleshoot this, you really need access to the>> It would then be best to open a case with us so that we can look into8>81.128.209.62>> If your host will agree to conference call with us, we can figure out
>> what's going on.
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>>
>> -------------------->> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>> >From: "dave" <dave@edin.co.uk>
>> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>>> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >Date: Wed, 12 Nov 2003 18:24:46 -0000
>> >Lines: 147
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0>>>> >Path:message>adding>> phx.gbl!TK2MSFTNGP09.phx.gbl>> microsoft.public.dotnet.framework.aspnet.security: 7550>> >Xref: cpmsftngxa06.phx.gbl>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Yep, that throws an error!
>> >
>> >
>> >
>> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
>> >> Dave,
>> >>
>> >> I would check to see if it's really parsing your web.config. Try>> a>> dotnet>> >> <foo> tag to your web.config and see if it throws an error.
>> >>
>> >> Jim Cheshire [MSFT]
>> >> Developer Support
>> >> ASP.NET
>> >> [email]jamesche@online.microsoft.com[/email]
>> >>
>> >> This post is provided as-is with no warranties and confers no rights.
>> >>
>> >>
>> >> --------------------
>> >> >From: "dave" <dave@edin.co.uk>
>> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
>> >> >Lines: 96
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >81.128.209.62
>> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>> >> >Xref: cpmsftngxa06.phx.gbl
>> >> microsoft.public.dotnet.framework.aspnet.security: 7527
>> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >
>> >> >Thanks for that Jim
>> >> >
>> >> >You are right of course they should ordered differently, but
>> >unfortunately
>> >> >that did not make any difference...
>> >> >
>> >> >This all works fine on my local pc and server, but not on my ISP's>> causing>> >> >site (Fasthosts) - is there anything i can ask them that might be>> >> >this?
>> >> >
>> >> >Thanks again...
>> >> >
>> >> >Cheers
>> >> >
>> >> >Dave
>> >> >
>> >> >
>> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in<allow>>> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
>> >> >> Dave,
>> >> >>
>> >> >> This web.config should work although you should reverse your->rights.>> >and
>> >> >> <deny> tags in the <authorization> element.
>> >> >>
>> >> >> Jim Cheshire [MSFT]
>> >> >> Developer Support
>> >> >> ASP.NET
>> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >>
>> >> >> This post is provided as-is with no warranties and confers no>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl>> >> >>
>> >> >> --------------------
>> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >Subject: RedirectFromLogin Goes Nowhere?
>> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >> >> >Lines: 43
>> >> >> >X-Priority: 3
>> >> >> >X-MSMail-Priority: Normal
>> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >81.128.209.62
>> >> >> >Path:>> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
>> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >
>> >> >> >Can anyone shed any light on the following:
>> >> >> >
>> >> >> >I have forms authentication setup within the web.config file (see
>> >below)
>> >> >> >which protects the entire website, which brings up the login pagetry>> >OK.
>> >> >> >
>> >> >> >However, even though I have been logged in and authenticated it is
>> >still
>> >> >> >returning to the login page. However if i log in again it will1st>> to>> >> go
>> >> >> >off to the originially specified location, but never seems to get
>> >there?
>> >> >> >
>> >> >> >If i then directly type in the original URL i tried in the very>>>>> >> place
>> >> >> it
>> >> >> >resolves fine, as i am now authenticated.
>> >> >> >
>> >> >> >This is extremely baffling - hope someone can help!
>> >> >> >
>> >> >> >
>> >> >> >Web Config settings.
>> >> >> >
>> >> >> ><configuration>
>> >> >> ><system.web>
>> >> >> > <customErrors mode="Off"/>
>> >> >> > <pages smartNavigation="true"/>
>> >> >> > <compilation debug="true"/>
>> >> >> >
>> >> >> ><authentication mode="Forms" >
>> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> >> >> > <credentials passwordFormat="Clear">
>> >> >> > <user name="tester" password="testing" />
>> >> >> > </credentials>
>> >> >> ></forms>
>> >> >> ></authentication>
>> >> >> >
>> >> >> >
>> >> >> > <authorization>
>> >> >> > <allow users="tester"/>
>> >> >> > <deny users="?"/>
>> >> >> > </authorization>
>> >> >> ></system.web>
>> >> >> >
>> >> >> ></configuration>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest
-
dave #9
Re: RedirectFromLogin Goes Nowhere?
Hi Jim
FH are not willing to assist - they reckon it is a scripting error...
I cant see what it is and i have followed all the samples available to man.
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...rights.> Thanks, Dave. If they agree to it, you will want to call (800) 936-5800
> and open a case with us so that we can assist.
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
> --------------------> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>> >From: "dave" <dave@edin.co.uk>
> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>> 81.128.186.244> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >Date: Tue, 18 Nov 2003 08:35:03 -0000
> >Lines: 218
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com> microsoft.public.dotnet.framework.aspnet.security: 7606> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl> something> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Jim
> >
> >Sorry for the delay been away for a few days.
> >
> >I have forwarded a request to my ISP (FastHosts) to see if this is> it.> >they will cater.
> >
> >Will come back to you soonest.
> >
> >Cheers
> >
> >Dave
> >
> >
> >
> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...> >server.> >> Dave,
> >>
> >> Okay, now we know that we are truly parsing your Web.config.
> >>
> >> In order to really troubleshoot this, you really need access to the> >> It would then be best to open a case with us so that we can look into>> >81.128.209.62> >> If your host will agree to conference call with us, we can figure out
> >> what's going on.
> >>
> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> Developer Support
> >> ASP.NET
> >> [email]jamesche@online.microsoft.com[/email]
> >>
> >> This post is provided as-is with no warranties and confers no rights.
> >>
> >>
> >> --------------------
> >> >From: "dave" <dave@edin.co.uk>
> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
> >> >Lines: 147
> >> >X-Priority: 3
> >> >X-MSMail-Priority: Normal
> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com> >> >Path:
> >>
>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
> 8> >adding> >> phx.gbl!TK2MSFTNGP09.phx.gbl
> >> >Xref: cpmsftngxa06.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.security: 7550
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >
> >> >Yep, that throws an error!
> >> >
> >> >
> >> >
> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
> >> >> Dave,
> >> >>
> >> >> I would check to see if it's really parsing your web.config. Try> >> a
> >> >> <foo> tag to your web.config and see if it throws an error.
> >> >>
> >> >> Jim Cheshire [MSFT]
> >> >> Developer Support
> >> >> ASP.NET
> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >>
> >> >> This post is provided as-is with no warranties and confers nocpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl> >> >>
> >> >>
> >> >> --------------------
> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
> >> >> >Lines: 96
> >> >> >X-Priority: 3
> >> >> >X-MSMail-Priority: Normal
> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >81.128.209.62
> >> >> >Path:(see> message> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >
> >> >> >Thanks for that Jim
> >> >> >
> >> >> >You are right of course they should ordered differently, but
> >> >unfortunately
> >> >> >that did not make any difference...
> >> >> >
> >> >> >This all works fine on my local pc and server, but not on my ISP's
> >> dotnet
> >> >> >site (Fasthosts) - is there anything i can ask them that might be
> >> causing
> >> >> >this?
> >> >> >
> >> >> >Thanks again...
> >> >> >
> >> >> >Cheers
> >> >> >
> >> >> >Dave
> >> >> >
> >> >> >
> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in> <allow>> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
> >> >> >> Dave,
> >> >> >>
> >> >> >> This web.config should work although you should reverse your> >rights.> >> >and
> >> >> >> <deny> tags in the <authorization> element.
> >> >> >>
> >> >> >> Jim Cheshire [MSFT]
> >> >> >> Developer Support
> >> >> >> ASP.NET
> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >>
> >> >> >> This post is provided as-is with no warranties and confers no> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl> >> >> >>
> >> >> >> --------------------
> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >> >> >> >Lines: 43
> >> >> >> >X-Priority: 3
> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >> >81.128.209.62
> >> >> >> >Path:> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >
> >> >> >> >Can anyone shed any light on the following:
> >> >> >> >
> >> >> >> >I have forms authentication setup within the web.config filepage> >> >below)
> >> >> >> >which protects the entire website, which brings up the loginis> -> >> >OK.
> >> >> >> >
> >> >> >> >However, even though I have been logged in and authenticated itget> try> >> >still
> >> >> >> >returning to the login page. However if i log in again it will> >> to
> >> >> go
> >> >> >> >off to the originially specified location, but never seems to> 1st> >> >there?
> >> >> >> >
> >> >> >> >If i then directly type in the original URL i tried in the very>> >> >> >> place
> >> >> >> it
> >> >> >> >resolves fine, as i am now authenticated.
> >> >> >> >
> >> >> >> >This is extremely baffling - hope someone can help!
> >> >> >> >
> >> >> >> >
> >> >> >> >Web Config settings.
> >> >> >> >
> >> >> >> ><configuration>
> >> >> >> ><system.web>
> >> >> >> > <customErrors mode="Off"/>
> >> >> >> > <pages smartNavigation="true"/>
> >> >> >> > <compilation debug="true"/>
> >> >> >> >
> >> >> >> ><authentication mode="Forms" >
> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
> >> >> >> > <credentials passwordFormat="Clear">
> >> >> >> > <user name="tester" password="testing" />
> >> >> >> > </credentials>
> >> >> >> ></forms>
> >> >> >> ></authentication>
> >> >> >> >
> >> >> >> >
> >> >> >> > <authorization>
> >> >> >> > <allow users="tester"/>
> >> >> >> > <deny users="?"/>
> >> >> >> > </authorization>
> >> >> >> ></system.web>
> >> >> >> >
> >> >> >> ></configuration>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >>
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #10
Re: RedirectFromLogin Goes Nowhere?
Dave,
That's a shame.
How are you coding your Forms authentication? Are you just calling
RedirectFromLogin()? How are you authenticating in the live site? Are you
just using the web.config with a list of users?
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
<#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
<mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
<OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
<yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
<#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
<pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>81.128.186.244>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Thu, 20 Nov 2003 09:20:48 -0000
>Lines: 281
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.comcpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08>Path:
.phx.gbl!TK2MSFTNGP10.phx.gblmicrosoft.public.dotnet.framework.aspnet.security: 7592>Xref: cpmsftngxa07.phx.gbl0>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Hi Jim
>
>FH are not willing to assist - they reckon it is a scripting error...
>
>I cant see what it is and i have followed all the samples available to man.
>
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...>> Thanks, Dave. If they agree to it, you will want to call (800) 936-5800
>> and open a case with us so that we can assist.
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>> -------------------->> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>> >From: "dave" <dave@edin.co.uk>
>> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>>> 81.128.186.244>> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >Date: Tue, 18 Nov 2003 08:35:03 -0000
>> >Lines: 218
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com>> microsoft.public.dotnet.framework.aspnet.security: 7606>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl>> something>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Jim
>> >
>> >Sorry for the delay been away for a few days.
>> >
>> >I have forwarded a request to my ISP (FastHosts) to see if this is>> it.>> >they will cater.
>> >
>> >Will come back to you soonest.
>> >
>> >Cheers
>> >
>> >Dave
>> >
>> >
>> >
>> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...
>> >> Dave,
>> >>
>> >> Okay, now we know that we are truly parsing your Web.config.
>> >>
>> >> In order to really troubleshoot this, you really need access to the
>> >server.
>> >> It would then be best to open a case with us so that we can look into>>>> >> If your host will agree to conference call with us, we can figure out
>> >> what's going on.
>> >>
>> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> Developer Support
>> >> ASP.NET
>> >> [email]jamesche@online.microsoft.com[/email]
>> >>
>> >> This post is provided as-is with no warranties and confers no rights.
>> >>
>> >>
>> >> --------------------
>> >> >From: "dave" <dave@edin.co.uk>
>> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
>> >> >Lines: 147
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >81.128.209.62
>> >> >Path:
>> >>
>>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSF TNGXA05.phx.gbl!TK2MSFTNGPmessage>> 8>> >> phx.gbl!TK2MSFTNGP09.phx.gbl
>> >> >Xref: cpmsftngxa06.phx.gbl
>> >> microsoft.public.dotnet.framework.aspnet.security: 7550
>> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >
>> >> >Yep, that throws an error!
>> >> >
>> >> >
>> >> >
>> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in>rights.>> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
>> >> >> Dave,
>> >> >>
>> >> >> I would check to see if it's really parsing your web.config. Try
>> >adding
>> >> a
>> >> >> <foo> tag to your web.config and see if it throws an error.
>> >> >>
>> >> >> Jim Cheshire [MSFT]
>> >> >> Developer Support
>> >> >> ASP.NET
>> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >>
>> >> >> This post is provided as-is with no warranties and confers no>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl>> >> >>
>> >> >>
>> >> >> --------------------
>> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
>> >> >> >Lines: 96
>> >> >> >X-Priority: 3
>> >> >> >X-MSMail-Priority: Normal
>> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >81.128.209.62
>> >> >> >Path:>(see>> message>> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
>> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >
>> >> >> >Thanks for that Jim
>> >> >> >
>> >> >> >You are right of course they should ordered differently, but
>> >> >unfortunately
>> >> >> >that did not make any difference...
>> >> >> >
>> >> >> >This all works fine on my local pc and server, but not on my ISP's
>> >> dotnet
>> >> >> >site (Fasthosts) - is there anything i can ask them that might be
>> >> causing
>> >> >> >this?
>> >> >> >
>> >> >> >Thanks again...
>> >> >> >
>> >> >> >Cheers
>> >> >> >
>> >> >> >Dave
>> >> >> >
>> >> >> >
>> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in>> <allow>>> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
>> >> >> >> Dave,
>> >> >> >>
>> >> >> >> This web.config should work although you should reverse your>> >> >and
>> >> >> >> <deny> tags in the <authorization> element.
>> >> >> >>
>> >> >> >> Jim Cheshire [MSFT]
>> >> >> >> Developer Support
>> >> >> >> ASP.NET
>> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >>
>> >> >> >> This post is provided as-is with no warranties and confers no
>> >rights.
>> >> >> >>
>> >> >> >> --------------------
>> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
>> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >> >> >> >Lines: 43
>> >> >> >> >X-Priority: 3
>> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >> >81.128.209.62
>> >> >> >> >Path:
>> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
>> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >
>> >> >> >> >Can anyone shed any light on the following:
>> >> >> >> >
>> >> >> >> >I have forms authentication setup within the web.config file>page>> >> >below)
>> >> >> >> >which protects the entire website, which brings up the login>is>> ->> >> >OK.
>> >> >> >> >
>> >> >> >> >However, even though I have been logged in and authenticated it>get>> try>> >> >still
>> >> >> >> >returning to the login page. However if i log in again it will>> >> to
>> >> >> go
>> >> >> >> >off to the originially specified location, but never seems to>>> 1st>> >> >there?
>> >> >> >> >
>> >> >> >> >If i then directly type in the original URL i tried in the very>>>> >> >> place
>> >> >> >> it
>> >> >> >> >resolves fine, as i am now authenticated.
>> >> >> >> >
>> >> >> >> >This is extremely baffling - hope someone can help!
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >Web Config settings.
>> >> >> >> >
>> >> >> >> ><configuration>
>> >> >> >> ><system.web>
>> >> >> >> > <customErrors mode="Off"/>
>> >> >> >> > <pages smartNavigation="true"/>
>> >> >> >> > <compilation debug="true"/>
>> >> >> >> >
>> >> >> >> ><authentication mode="Forms" >
>> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> >> >> >> > <credentials passwordFormat="Clear">
>> >> >> >> > <user name="tester" password="testing" />
>> >> >> >> > </credentials>
>> >> >> >> ></forms>
>> >> >> >> ></authentication>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > <authorization>
>> >> >> >> > <allow users="tester"/>
>> >> >> >> > <deny users="?"/>
>> >> >> >> > </authorization>
>> >> >> >> ></system.web>
>> >> >> >> >
>> >> >> >> ></configuration>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest
-
dave #11
Re: RedirectFromLogin Goes Nowhere?
Jim
Here is the code snippet from the login page that i use:
if dat.Read() then
'set the UserID and UserTypeID Session vars
Session("User_FName") = dat("CONTACT_FNAME")
Session("User_Type_ID") = dat("USER_TYPE_ID")
FormsAuthentication.RedirectFromLoginPage(dat("USE R_ID"), "False")
'pick the users roles/permissions
GetUsersRoles()
lblValid.Text = "Valid Login Details..."
else
'set message to bad login details
lblValid.Text = "Incorrect Login Details"
end if
And here is the whole web.config file:
<configuration>
<system.web>
<customErrors mode="Off"/>
<pages smartNavigation="true"/>
<compilation debug="true"/>
<authentication mode="Forms" >
<forms name="Nerisis" path="/" loginUrl="login.aspx" timeout="20" ></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<appSettings>
<add key="DBconnString" value="Server=myserver;Password=xxx;Persist
Security Info=True;User ID=sa;Initial Catalog=LMS" />
</appSettings>
</configuration>
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl...you> Dave,
>
> That's a shame.
>
> How are you coding your Forms authentication? Are you just calling
> RedirectFromLogin()? How are you authenticating in the live site? Arecpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08> just using the web.config with a list of users?
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
> --------------------> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>> >From: "dave" <dave@edin.co.uk>
> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>> 81.128.186.244> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >Date: Thu, 20 Nov 2003 09:20:48 -0000
> >Lines: 281
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com>> >Path:man.> phx.gbl!TK2MSFTNGP10.phx.gbl> microsoft.public.dotnet.framework.aspnet.security: 7592> >Xref: cpmsftngxa07.phx.gbl> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Hi Jim
> >
> >FH are not willing to assist - they reckon it is a scripting error...
> >
> >I cant see what it is and i have followed all the samples available to936-5800> >
> >
> >
> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...> >> Thanks, Dave. If they agree to it, you will want to call (800)into> >> and open a case with us so that we can assist.
> >>
> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> Developer Support
> >> ASP.NET
> >> [email]jamesche@online.microsoft.com[/email]
> >>
> >> This post is provided as-is with no warranties and confers no rights.
> >>
> >> --------------------
> >> >From: "dave" <dave@edin.co.uk>
> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >Date: Tue, 18 Nov 2003 08:35:03 -0000
> >> >Lines: 218
> >> >X-Priority: 3
> >> >X-MSMail-Priority: Normal
> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
> >> 81.128.186.244
> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
> >> >Xref: cpmsftngxa06.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.security: 7606
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >
> >> >Jim
> >> >
> >> >Sorry for the delay been away for a few days.
> >> >
> >> >I have forwarded a request to my ISP (FastHosts) to see if this is
> >> something
> >> >they will cater.
> >> >
> >> >Will come back to you soonest.
> >> >
> >> >Cheers
> >> >
> >> >Dave
> >> >
> >> >
> >> >
> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...
> >> >> Dave,
> >> >>
> >> >> Okay, now we know that we are truly parsing your Web.config.
> >> >>
> >> >> In order to really troubleshoot this, you really need access to the
> >> >server.
> >> >> It would then be best to open a case with us so that we can lookout> >> it.
> >> >> If your host will agree to conference call with us, we can figurerights.> >> >> what's going on.
> >> >>
> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> >> Developer Support
> >> >> ASP.NET
> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >>
> >> >> This post is provided as-is with no warranties and confers noISP's>> >> >>
> >> >>
> >> >> --------------------
> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
> >> >> >Lines: 147
> >> >> >X-Priority: 3
> >> >> >X-MSMail-Priority: Normal
> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >81.128.209.62
> >> >> >Path:
> >> >>
> >>> 0>>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSF TNGXA05.phx.gbl!TK2MSFTNGP> message> >> 8
> >> >> phx.gbl!TK2MSFTNGP09.phx.gbl
> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> microsoft.public.dotnet.framework.aspnet.security: 7550
> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >
> >> >> >Yep, that throws an error!
> >> >> >
> >> >> >
> >> >> >
> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in> >rights.> >> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
> >> >> >> Dave,
> >> >> >>
> >> >> >> I would check to see if it's really parsing your web.config. Try
> >> >adding
> >> >> a
> >> >> >> <foo> tag to your web.config and see if it throws an error.
> >> >> >>
> >> >> >> Jim Cheshire [MSFT]
> >> >> >> Developer Support
> >> >> >> ASP.NET
> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >>
> >> >> >> This post is provided as-is with no warranties and confers no> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl> >> >> >>
> >> >> >>
> >> >> >> --------------------
> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
> >> >> >> >Lines: 96
> >> >> >> >X-Priority: 3
> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >> >81.128.209.62
> >> >> >> >Path:> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >
> >> >> >> >Thanks for that Jim
> >> >> >> >
> >> >> >> >You are right of course they should ordered differently, but
> >> >> >unfortunately
> >> >> >> >that did not make any difference...
> >> >> >> >
> >> >> >> >This all works fine on my local pc and server, but not on mybe> >> >> dotnet
> >> >> >> >site (Fasthosts) - is there anything i can ask them that mightmicrosoft.public.dotnet.framework.aspnet.security> >> >> causing
> >> >> >> >this?
> >> >> >> >
> >> >> >> >Thanks again...
> >> >> >> >
> >> >> >> >Cheers
> >> >> >> >
> >> >> >> >Dave
> >> >> >> >
> >> >> >> >
> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in
> >> message
> >> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
> >> >> >> >> Dave,
> >> >> >> >>
> >> >> >> >> This web.config should work although you should reverse your
> >> <allow>
> >> >> >and
> >> >> >> >> <deny> tags in the <authorization> element.
> >> >> >> >>
> >> >> >> >> Jim Cheshire [MSFT]
> >> >> >> >> Developer Support
> >> >> >> >> ASP.NET
> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >> >>
> >> >> >> >> This post is provided as-is with no warranties and confers no
> >> >rights.
> >> >> >> >>
> >> >> >> >> --------------------
> >> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
> >> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >> >> >> >> >Lines: 43
> >> >> >> >> >X-Priority: 3
> >> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >> >> >81.128.209.62
> >> >> >> >> >Path:
> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
> >> >> >> >> >X-Tomcat-NG:it> >(see> >> >> >> >> >
> >> >> >> >> >Can anyone shed any light on the following:
> >> >> >> >> >
> >> >> >> >> >I have forms authentication setup within the web.config file> >page> >> >> >below)
> >> >> >> >> >which protects the entire website, which brings up the login> >> -
> >> >> >OK.
> >> >> >> >> >
> >> >> >> >> >However, even though I have been logged in and authenticatedwill> >is> >> >> >still
> >> >> >> >> >returning to the login page. However if i log in again itvery> >get> >> try
> >> >> to
> >> >> >> go
> >> >> >> >> >off to the originially specified location, but never seems to> >> >> >there?
> >> >> >> >> >
> >> >> >> >> >If i then directly type in the original URL i tried in the>> >> >> 1st
> >> >> >> place
> >> >> >> >> it
> >> >> >> >> >resolves fine, as i am now authenticated.
> >> >> >> >> >
> >> >> >> >> >This is extremely baffling - hope someone can help!
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >Web Config settings.
> >> >> >> >> >
> >> >> >> >> ><configuration>
> >> >> >> >> ><system.web>
> >> >> >> >> > <customErrors mode="Off"/>
> >> >> >> >> > <pages smartNavigation="true"/>
> >> >> >> >> > <compilation debug="true"/>
> >> >> >> >> >
> >> >> >> >> ><authentication mode="Forms" >
> >> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
> >> >> >> >> > <credentials passwordFormat="Clear">
> >> >> >> >> > <user name="tester" password="testing" />
> >> >> >> >> > </credentials>
> >> >> >> >> ></forms>
> >> >> >> >> ></authentication>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > <authorization>
> >> >> >> >> > <allow users="tester"/>
> >> >> >> >> > <deny users="?"/>
> >> >> >> >> > </authorization>
> >> >> >> >> ></system.web>
> >> >> >> >> >
> >> >> >> >> ></configuration>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >>
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #12
Re: RedirectFromLogin Goes Nowhere?
Dave,
What is dat? What does the Read() method on dat do?
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
<#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
<mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
<OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
<yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
<#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
<pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
<#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
<Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl>81.128.186.244>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Thu, 20 Nov 2003 20:54:03 -0000
>Lines: 392
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#Hjyuh6rDHA.3744@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.comcpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08>Path:
.phx.gbl!TK2MSFTNGP11.phx.gblmicrosoft.public.dotnet.framework.aspnet.security: 7606>Xref: cpmsftngxa07.phx.gbl8>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Jim
>
>Here is the code snippet from the login page that i use:
>
> if dat.Read() then
> 'set the UserID and UserTypeID Session vars
> Session("User_FName") = dat("CONTACT_FNAME")
> Session("User_Type_ID") = dat("USER_TYPE_ID")
> FormsAuthentication.RedirectFromLoginPage(dat("USE R_ID"), "False")
>
> 'pick the users roles/permissions
> GetUsersRoles()
>
> lblValid.Text = "Valid Login Details..."
> else
> 'set message to bad login details
> lblValid.Text = "Incorrect Login Details"
> end if
>
>
>And here is the whole web.config file:
>
>
><configuration>
><system.web>
> <customErrors mode="Off"/>
> <pages smartNavigation="true"/>
> <compilation debug="true"/>
>
><authentication mode="Forms" >
><forms name="Nerisis" path="/" loginUrl="login.aspx" timeout="20" ></forms>
></authentication>
>
><authorization>
> <deny users="?"/>
></authorization>
></system.web>
>
><appSettings>
> <add key="DBconnString" value="Server=myserver;Password=xxx;Persist
>Security Info=True;User ID=sa;Initial Catalog=LMS" />
></appSettings>
>
>
></configuration>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl...>you>> Dave,
>>
>> That's a shame.
>>
>> How are you coding your Forms authentication? Are you just calling
>> RedirectFromLogin()? How are you authenticating in the live site? Are>cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0>> just using the web.config with a list of users?
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>> -------------------->> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>> >From: "dave" <dave@edin.co.uk>
>> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
>> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>>> 81.128.186.244>> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >Date: Thu, 20 Nov 2003 09:20:48 -0000
>> >Lines: 281
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com>>>> >Path:message>man.>> phx.gbl!TK2MSFTNGP10.phx.gbl>> microsoft.public.dotnet.framework.aspnet.security: 7592>> >Xref: cpmsftngxa07.phx.gbl>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Hi Jim
>> >
>> >FH are not willing to assist - they reckon it is a scripting error...
>> >
>> >I cant see what it is and i have followed all the samples available to>936-5800>> >
>> >
>> >
>> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>> >news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...
>> >> Thanks, Dave. If they agree to it, you will want to call (800)>> >> and open a case with us so that we can assist.
>> >>
>> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> Developer Support
>> >> ASP.NET
>> >> [email]jamesche@online.microsoft.com[/email]
>> >>
>> >> This post is provided as-is with no warranties and confers no rights.
>> >>
>> >> --------------------
>> >> >From: "dave" <dave@edin.co.uk>
>> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
>> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >Date: Tue, 18 Nov 2003 08:35:03 -0000
>> >> >Lines: 218
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
>> >> 81.128.186.244
>> >> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
>> >> >Xref: cpmsftngxa06.phx.gbl
>> >> microsoft.public.dotnet.framework.aspnet.security: 7606
>> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >
>> >> >Jim
>> >> >
>> >> >Sorry for the delay been away for a few days.
>> >> >
>> >> >I have forwarded a request to my ISP (FastHosts) to see if this is
>> >> something
>> >> >they will cater.
>> >> >
>> >> >Will come back to you soonest.
>> >> >
>> >> >Cheers
>> >> >
>> >> >Dave
>> >> >
>> >> >
>> >> >
>> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote inP>into>> >> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...
>> >> >> Dave,
>> >> >>
>> >> >> Okay, now we know that we are truly parsing your Web.config.
>> >> >>
>> >> >> In order to really troubleshoot this, you really need access to the
>> >> >server.
>> >> >> It would then be best to open a case with us so that we can look>out>> >> it.
>> >> >> If your host will agree to conference call with us, we can figure>rights.>> >> >> what's going on.
>> >> >>
>> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> >> Developer Support
>> >> >> ASP.NET
>> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >>
>> >> >> This post is provided as-is with no warranties and confers no>>>> >> >>
>> >> >>
>> >> >> --------------------
>> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
>> >> >> >Lines: 147
>> >> >> >X-Priority: 3
>> >> >> >X-MSMail-Priority: Normal
>> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >81.128.209.62
>> >> >> >Path:
>> >> >>
>> >>>>>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MS FTNGXA05.phx.gbl!TK2MSFTNGTry>> 0>> message>> >> 8
>> >> >> phx.gbl!TK2MSFTNGP09.phx.gbl
>> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> microsoft.public.dotnet.framework.aspnet.security: 7550
>> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >
>> >> >> >Yep, that throws an error!
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in>> >> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
>> >> >> >> Dave,
>> >> >> >>
>> >> >> >> I would check to see if it's really parsing your web.config.microsoft.public.dotnet.framework.aspnet.security>ISP's>> >> >adding
>> >> >> a
>> >> >> >> <foo> tag to your web.config and see if it throws an error.
>> >> >> >>
>> >> >> >> Jim Cheshire [MSFT]
>> >> >> >> Developer Support
>> >> >> >> ASP.NET
>> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >>
>> >> >> >> This post is provided as-is with no warranties and confers no
>> >rights.
>> >> >> >>
>> >> >> >>
>> >> >> >> --------------------
>> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
>> >> >> >> >Lines: 96
>> >> >> >> >X-Priority: 3
>> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >> >81.128.209.62
>> >> >> >> >Path:
>> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
>> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >
>> >> >> >> >Thanks for that Jim
>> >> >> >> >
>> >> >> >> >You are right of course they should ordered differently, but
>> >> >> >unfortunately
>> >> >> >> >that did not make any difference...
>> >> >> >> >
>> >> >> >> >This all works fine on my local pc and server, but not on my>be>> >> >> dotnet
>> >> >> >> >site (Fasthosts) - is there anything i can ask them that might>> >> >> causing
>> >> >> >> >this?
>> >> >> >> >
>> >> >> >> >Thanks again...
>> >> >> >> >
>> >> >> >> >Cheers
>> >> >> >> >
>> >> >> >> >Dave
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in
>> >> message
>> >> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
>> >> >> >> >> Dave,
>> >> >> >> >>
>> >> >> >> >> This web.config should work although you should reverse your
>> >> <allow>
>> >> >> >and
>> >> >> >> >> <deny> tags in the <authorization> element.
>> >> >> >> >>
>> >> >> >> >> Jim Cheshire [MSFT]
>> >> >> >> >> Developer Support
>> >> >> >> >> ASP.NET
>> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >> >>
>> >> >> >> >> This post is provided as-is with no warranties and confers no
>> >> >rights.
>> >> >> >> >>
>> >> >> >> >> --------------------
>> >> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
>> >> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >> >> >> >> >Lines: 43
>> >> >> >> >> >X-Priority: 3
>> >> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >> >Newsgroups:to>microsoft.public.dotnet.framework.aspnet.securi ty>> >> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >> >> >81.128.209.62
>> >> >> >> >> >Path:
>> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
>> >> >> >> >> >X-Tomcat-NG:>it>> >> >> >> >> >
>> >> >> >> >> >Can anyone shed any light on the following:
>> >> >> >> >> >
>> >> >> >> >> >I have forms authentication setup within the web.config file
>> >(see
>> >> >> >below)
>> >> >> >> >> >which protects the entire website, which brings up the login
>> >page
>> >> -
>> >> >> >OK.
>> >> >> >> >> >
>> >> >> >> >> >However, even though I have been logged in and authenticated>will>> >is
>> >> >> >still
>> >> >> >> >> >returning to the login page. However if i log in again it>> >> try
>> >> >> to
>> >> >> >> go
>> >> >> >> >> >off to the originially specified location, but never seems>very>> >get
>> >> >> >there?
>> >> >> >> >> >
>> >> >> >> >> >If i then directly type in the original URL i tried in the>>>>> >> 1st
>> >> >> >> place
>> >> >> >> >> it
>> >> >> >> >> >resolves fine, as i am now authenticated.
>> >> >> >> >> >
>> >> >> >> >> >This is extremely baffling - hope someone can help!
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >Web Config settings.
>> >> >> >> >> >
>> >> >> >> >> ><configuration>
>> >> >> >> >> ><system.web>
>> >> >> >> >> > <customErrors mode="Off"/>
>> >> >> >> >> > <pages smartNavigation="true"/>
>> >> >> >> >> > <compilation debug="true"/>
>> >> >> >> >> >
>> >> >> >> >> ><authentication mode="Forms" >
>> >> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> >> >> >> >> > <credentials passwordFormat="Clear">
>> >> >> >> >> > <user name="tester" password="testing" />
>> >> >> >> >> > </credentials>
>> >> >> >> >> ></forms>
>> >> >> >> >> ></authentication>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > <authorization>
>> >> >> >> >> > <allow users="tester"/>
>> >> >> >> >> > <deny users="?"/>
>> >> >> >> >> > </authorization>
>> >> >> >> >> ></system.web>
>> >> >> >> >> >
>> >> >> >> >> ></configuration>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest
-
dave #13
Re: RedirectFromLogin Goes Nowhere?
Sorry Jim
Dat is a datareader taken from an sql DB, as iam validating their login
details against a DB - and read() is the sqldatareader method for iterating
the records.
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:gUwlRr7rDHA.3444@cpmsftngxa07.phx.gbl...cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08> Dave,
>
> What is dat? What does the Read() method on dat do?
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> Developer Support
> ASP.NET
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided as-is with no warranties and confers no rights.
>
>
> --------------------> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>> >From: "dave" <dave@edin.co.uk>
> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
> <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
> <Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl>> 81.128.186.244> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >Date: Thu, 20 Nov 2003 20:54:03 -0000
> >Lines: 392
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <#Hjyuh6rDHA.3744@TK2MSFTNGP11.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com>> >Path:rights.> phx.gbl!TK2MSFTNGP11.phx.gbl> microsoft.public.dotnet.framework.aspnet.security: 7606> >Xref: cpmsftngxa07.phx.gbl></forms>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Jim
> >
> >Here is the code snippet from the login page that i use:
> >
> > if dat.Read() then
> > 'set the UserID and UserTypeID Session vars
> > Session("User_FName") = dat("CONTACT_FNAME")
> > Session("User_Type_ID") = dat("USER_TYPE_ID")
> > FormsAuthentication.RedirectFromLoginPage(dat("USE R_ID"), "False")
> >
> > 'pick the users roles/permissions
> > GetUsersRoles()
> >
> > lblValid.Text = "Valid Login Details..."
> > else
> > 'set message to bad login details
> > lblValid.Text = "Incorrect Login Details"
> > end if
> >
> >
> >And here is the whole web.config file:
> >
> >
> ><configuration>
> ><system.web>
> > <customErrors mode="Off"/>
> > <pages smartNavigation="true"/>
> > <compilation debug="true"/>
> >
> ><authentication mode="Forms" >
> ><forms name="Nerisis" path="/" loginUrl="login.aspx" timeout="20">> ></authentication>
> >
> ><authorization>
> > <deny users="?"/>
> ></authorization>
> ></system.web>
> >
> ><appSettings>
> > <add key="DBconnString" value="Server=myserver;Password=xxx;Persist
> >Security Info=True;User ID=sa;Initial Catalog=LMS" />
> ></appSettings>
> >
> >
> ></configuration>
> >
> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >news:Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl...> >you> >> Dave,
> >>
> >> That's a shame.
> >>
> >> How are you coding your Forms authentication? Are you just calling
> >> RedirectFromLogin()? How are you authenticating in the live site? Are> >> just using the web.config with a list of users?
> >>
> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> Developer Support
> >> ASP.NET
> >> [email]jamesche@online.microsoft.com[/email]
> >>
> >> This post is provided as-is with no warranties and confers no rights.
> >>
> >> --------------------
> >> >From: "dave" <dave@edin.co.uk>
> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
> >> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> >> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >Date: Thu, 20 Nov 2003 09:20:48 -0000
> >> >Lines: 281
> >> >X-Priority: 3
> >> >X-MSMail-Priority: Normal
> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >Message-ID: <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
> >> 81.128.186.244
> >> >Path:
> >>
>cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
> 8> >man.> >> phx.gbl!TK2MSFTNGP10.phx.gbl
> >> >Xref: cpmsftngxa07.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.security: 7592
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >
> >> >Hi Jim
> >> >
> >> >FH are not willing to assist - they reckon it is a scripting error...
> >> >
> >> >I cant see what it is and i have followed all the samples available to> >936-5800> >> >
> >> >
> >> >
> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
> >> >news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...
> >> >> Thanks, Dave. If they agree to it, you will want to call (800)> >> >> and open a case with us so that we can assist.
> >> >>
> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> >> Developer Support
> >> >> ASP.NET
> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >>
> >> >> This post is provided as-is with no warranties and confers nocpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl> >> >>
> >> >> --------------------
> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >Date: Tue, 18 Nov 2003 08:35:03 -0000
> >> >> >Lines: 218
> >> >> >X-Priority: 3
> >> >> >X-MSMail-Priority: Normal
> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
> >> >> 81.128.186.244
> >> >> >Path:the> message> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> microsoft.public.dotnet.framework.aspnet.security: 7606
> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >
> >> >> >Jim
> >> >> >
> >> >> >Sorry for the delay been away for a few days.
> >> >> >
> >> >> >I have forwarded a request to my ISP (FastHosts) to see if this is
> >> >> something
> >> >> >they will cater.
> >> >> >
> >> >> >Will come back to you soonest.
> >> >> >
> >> >> >Cheers
> >> >> >
> >> >> >Dave
> >> >> >
> >> >> >
> >> >> >
> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in> >> >> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...
> >> >> >> Dave,
> >> >> >>
> >> >> >> Okay, now we know that we are truly parsing your Web.config.
> >> >> >>
> >> >> >> In order to really troubleshoot this, you really need access tomicrosoft.public.dotnet.framework.aspnet.security>> >into> >> >> >server.
> >> >> >> It would then be best to open a case with us so that we can look> >out> >> >> it.
> >> >> >> If your host will agree to conference call with us, we can figure> >rights.> >> >> >> what's going on.
> >> >> >>
> >> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
> >> >> >> Developer Support
> >> >> >> ASP.NET
> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >>
> >> >> >> This post is provided as-is with no warranties and confers no> >> >> >>
> >> >> >>
> >> >> >> --------------------
> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
> >> >> >> >Lines: 147
> >> >> >> >X-Priority: 3
> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >> >81.128.209.62
> >> >> >> >Path:
> >> >> >>
> >> >>
> >>> P>>>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MS FTNGXA05.phx.gbl!TK2MSFTNG> Try> >> 0
> >> >> 8
> >> >> >> phx.gbl!TK2MSFTNGP09.phx.gbl
> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7550
> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >
> >> >> >> >Yep, that throws an error!
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in
> >> message
> >> >> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
> >> >> >> >> Dave,
> >> >> >> >>
> >> >> >> >> I would check to see if it's really parsing your web.config.> >> >> >adding
> >> >> >> a
> >> >> >> >> <foo> tag to your web.config and see if it throws an error.
> >> >> >> >>
> >> >> >> >> Jim Cheshire [MSFT]
> >> >> >> >> Developer Support
> >> >> >> >> ASP.NET
> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >> >>
> >> >> >> >> This post is provided as-is with no warranties and confers no
> >> >rights.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --------------------
> >> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
> >> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
> >> >> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
> >> >> >> >> >Lines: 96
> >> >> >> >> >X-Priority: 3
> >> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
> >> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
> >> >> >> >81.128.209.62
> >> >> >> >> >Path:
> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
> >> >> >> >> >X-Tomcat-NG:might> >ISP's> >> >> >> >> >
> >> >> >> >> >Thanks for that Jim
> >> >> >> >> >
> >> >> >> >> >You are right of course they should ordered differently, but
> >> >> >> >unfortunately
> >> >> >> >> >that did not make any difference...
> >> >> >> >> >
> >> >> >> >> >This all works fine on my local pc and server, but not on my> >> >> >> dotnet
> >> >> >> >> >site (Fasthosts) - is there anything i can ask them thatin> >be> >> >> >> causing
> >> >> >> >> >this?
> >> >> >> >> >
> >> >> >> >> >Thanks again...
> >> >> >> >> >
> >> >> >> >> >Cheers
> >> >> >> >> >
> >> >> >> >> >Dave
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wroteyour> >> >> message
> >> >> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
> >> >> >> >> >> Dave,
> >> >> >> >> >>
> >> >> >> >> >> This web.config should work although you should reverseno> >> >> <allow>
> >> >> >> >and
> >> >> >> >> >> <deny> tags in the <authorization> element.
> >> >> >> >> >>
> >> >> >> >> >> Jim Cheshire [MSFT]
> >> >> >> >> >> Developer Support
> >> >> >> >> >> ASP.NET
> >> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
> >> >> >> >> >>
> >> >> >> >> >> This post is provided as-is with no warranties and confershost81-128-209-62.in-addr.btopenworld.com> microsoft.public.dotnet.framework.aspnet.security> >> >> >rights.
> >> >> >> >> >>
> >> >> >> >> >> --------------------
> >> >> >> >> >> >From: "dave" <dave@edin.co.uk>
> >> >> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
> >> >> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
> >> >> >> >> >> >Lines: 43
> >> >> >> >> >> >X-Priority: 3
> >> >> >> >> >> >X-MSMail-Priority: Normal
> >> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >> >> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
> >> >> >> >> >> >Newsgroups:> >> >> >> >> >> >NNTP-Posting-Host:file> >microsoft.public.dotnet.framework.aspnet.securi ty> >> >> >> >> >81.128.209.62
> >> >> >> >> >> >Path:
> >> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
> >> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
> >> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
> >> >> >> >> >> >X-Tomcat-NG:> >> >> >> >> >> >
> >> >> >> >> >> >Can anyone shed any light on the following:
> >> >> >> >> >> >
> >> >> >> >> >> >I have forms authentication setup within the web.configlogin> >> >(see
> >> >> >> >below)
> >> >> >> >> >> >which protects the entire website, which brings up theauthenticated> >> >page
> >> >> -
> >> >> >> >OK.
> >> >> >> >> >> >
> >> >> >> >> >> >However, even though I have been logged in and> to> >it> >will> >> >is
> >> >> >> >still
> >> >> >> >> >> >returning to the login page. However if i log in again it> >> >> try
> >> >> >> to
> >> >> >> >> go
> >> >> >> >> >> >off to the originially specified location, but never seems>> >very> >> >get
> >> >> >> >there?
> >> >> >> >> >> >
> >> >> >> >> >> >If i then directly type in the original URL i tried in the> >> >> >> 1st
> >> >> >> >> place
> >> >> >> >> >> it
> >> >> >> >> >> >resolves fine, as i am now authenticated.
> >> >> >> >> >> >
> >> >> >> >> >> >This is extremely baffling - hope someone can help!
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >Web Config settings.
> >> >> >> >> >> >
> >> >> >> >> >> ><configuration>
> >> >> >> >> >> ><system.web>
> >> >> >> >> >> > <customErrors mode="Off"/>
> >> >> >> >> >> > <pages smartNavigation="true"/>
> >> >> >> >> >> > <compilation debug="true"/>
> >> >> >> >> >> >
> >> >> >> >> >> ><authentication mode="Forms" >
> >> >> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
> >> >> >> >> >> > <credentials passwordFormat="Clear">
> >> >> >> >> >> > <user name="tester" password="testing" />
> >> >> >> >> >> > </credentials>
> >> >> >> >> >> ></forms>
> >> >> >> >> >> ></authentication>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > <authorization>
> >> >> >> >> >> > <allow users="tester"/>
> >> >> >> >> >> > <deny users="?"/>
> >> >> >> >> >> > </authorization>
> >> >> >> >> >> ></system.web>
> >> >> >> >> >> >
> >> >> >> >> >> ></configuration>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >>
> >
> >
dave Guest
-
Jim Cheshire [MSFT] #14
Re: RedirectFromLogin Goes Nowhere?
Dave,
It's hard to say without seeing all of your code, but with a DataReader,
you would normally use a while loop since you should expect that the
DataReader contains more than one record.
Have you debugged this to see if authentication is failing on the first
attempt?
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
[email]jamesche@online.microsoft.com[/email]
This post is provided as-is with no warranties and confers no rights.
--------------------<ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>From: "dave" <dave@edin.co.uk>
>References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
<#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
<mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
<OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
<yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
<#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
<pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
<#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
<Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl>
<#Hjyuh6rDHA.3744@TK2MSFTNGP11.phx.gbl>
<gUwlRr7rDHA.3444@cpmsftngxa07.phx.gbl>81.128.186.244>Subject: Re: RedirectFromLogin Goes Nowhere?
>Date: Fri, 21 Nov 2003 08:53:40 -0000
>Lines: 470
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <Ovqj2zAsDHA.2436@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.comcpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP12.>Path:
phx.gblmicrosoft.public.dotnet.framework.aspnet.security: 7612>Xref: cpmsftngxa07.phx.gbl8>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Sorry Jim
>
>Dat is a datareader taken from an sql DB, as iam validating their login
>details against a DB - and read() is the sqldatareader method for iterating
>the records.
>
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:gUwlRr7rDHA.3444@cpmsftngxa07.phx.gbl...>cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0>> Dave,
>>
>> What is dat? What does the Read() method on dat do?
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> Developer Support
>> ASP.NET
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>>
>> -------------------->> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>>> >From: "dave" <dave@edin.co.uk>
>> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
>> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
>> <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
>> <Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl>>> 81.128.186.244>> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >Date: Thu, 20 Nov 2003 20:54:03 -0000
>> >Lines: 392
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <#Hjyuh6rDHA.3744@TK2MSFTNGP11.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com>>>> >Path:Are>> phx.gbl!TK2MSFTNGP11.phx.gbl>> microsoft.public.dotnet.framework.aspnet.security: 7606>> >Xref: cpmsftngxa07.phx.gbl>></forms>>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Jim
>> >
>> >Here is the code snippet from the login page that i use:
>> >
>> > if dat.Read() then
>> > 'set the UserID and UserTypeID Session vars
>> > Session("User_FName") = dat("CONTACT_FNAME")
>> > Session("User_Type_ID") = dat("USER_TYPE_ID")
>> > FormsAuthentication.RedirectFromLoginPage(dat("USE R_ID"), "False")
>> >
>> > 'pick the users roles/permissions
>> > GetUsersRoles()
>> >
>> > lblValid.Text = "Valid Login Details..."
>> > else
>> > 'set message to bad login details
>> > lblValid.Text = "Incorrect Login Details"
>> > end if
>> >
>> >
>> >And here is the whole web.config file:
>> >
>> >
>> ><configuration>
>> ><system.web>
>> > <customErrors mode="Off"/>
>> > <pages smartNavigation="true"/>
>> > <compilation debug="true"/>
>> >
>> ><authentication mode="Forms" >
>> ><forms name="Nerisis" path="/" loginUrl="login.aspx" timeout="20">> ></authentication>
>> >
>> ><authorization>
>> > <deny users="?"/>
>> ></authorization>
>> ></system.web>
>> >
>> ><appSettings>
>> > <add key="DBconnString" value="Server=myserver;Password=xxx;Persist
>> >Security Info=True;User ID=sa;Initial Catalog=LMS" />
>> ></appSettings>
>> >
>> >
>> ></configuration>
>> >
>> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>> >news:Ze0$bN4rDHA.2996@cpmsftngxa07.phx.gbl...
>> >> Dave,
>> >>
>> >> That's a shame.
>> >>
>> >> How are you coding your Forms authentication? Are you just calling
>> >> RedirectFromLogin()? How are you authenticating in the live site?0>>>> >you
>> >> just using the web.config with a list of users?
>> >>
>> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> Developer Support
>> >> ASP.NET
>> >> [email]jamesche@online.microsoft.com[/email]
>> >>
>> >> This post is provided as-is with no warranties and confers no rights.
>> >>
>> >> --------------------
>> >> >From: "dave" <dave@edin.co.uk>
>> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
>> >> <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> >> <pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl>
>> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >Date: Thu, 20 Nov 2003 09:20:48 -0000
>> >> >Lines: 281
>> >> >X-Priority: 3
>> >> >X-MSMail-Priority: Normal
>> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >Message-ID: <#9w3Ze0rDHA.2508@TK2MSFTNGP10.phx.gbl>
>> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
>> >> 81.128.186.244
>> >> >Path:
>> >>
>>cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSF TNGXA05.phx.gbl!TK2MSFTNGPto>> 8>> >> phx.gbl!TK2MSFTNGP10.phx.gbl
>> >> >Xref: cpmsftngxa07.phx.gbl
>> >> microsoft.public.dotnet.framework.aspnet.security: 7592
>> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >
>> >> >Hi Jim
>> >> >
>> >> >FH are not willing to assist - they reckon it is a scripting error...
>> >> >
>> >> >I cant see what it is and i have followed all the samples availablemessage>> >man.
>> >> >
>> >> >
>> >> >
>> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote inlook>rights.>> >> >news:pVpHGmfrDHA.2088@cpmsftngxa06.phx.gbl...
>> >> >> Thanks, Dave. If they agree to it, you will want to call (800)
>> >936-5800
>> >> >> and open a case with us so that we can assist.
>> >> >>
>> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> >> Developer Support
>> >> >> ASP.NET
>> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >>
>> >> >> This post is provided as-is with no warranties and confers no>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl>> >> >>
>> >> >> --------------------
>> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> >> <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> >> <yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl>
>> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >Date: Tue, 18 Nov 2003 08:35:03 -0000
>> >> >> >Lines: 218
>> >> >> >X-Priority: 3
>> >> >> >X-MSMail-Priority: Normal
>> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >Message-ID: <#3zde7arDHA.1656@tk2msftngp13.phx.gbl>
>> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >NNTP-Posting-Host: host81-128-186-244.in-addr.btopenworld.com
>> >> >> 81.128.186.244
>> >> >> >Path:>the>> message>> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> microsoft.public.dotnet.framework.aspnet.security: 7606
>> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >
>> >> >> >Jim
>> >> >> >
>> >> >> >Sorry for the delay been away for a few days.
>> >> >> >
>> >> >> >I have forwarded a request to my ISP (FastHosts) to see if this is
>> >> >> something
>> >> >> >they will cater.
>> >> >> >
>> >> >> >Will come back to you oonest.
>> >> >> >
>> >> >> >Cheers
>> >> >> >
>> >> >> >Dave
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in>> >> >> >news:yLGSRTgqDHA.2396@cpmsftngxa06.phx.gbl...
>> >> >> >> Dave,
>> >> >> >>
>> >> >> >> Okay, now we know that we are truly parsing your Web.config.
>> >> >> >>
>> >> >> >> In order to really troubleshoot this, you really need access to>> >> >> >server.
>> >> >> >> It would then be best to open a case with us so that we canfigure>> >into
>> >> >> it.
>> >> >> >> If your host will agree to conference call with us, we canG>>>> >out
>> >> >> >> what's going on.
>> >> >> >>
>> >> >> >> Jim Cheshire, MCSE, MCSD [MSFT]
>> >> >> >> Developer Support
>> >> >> >> ASP.NET
>> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >>
>> >> >> >> This post is provided as-is with no warranties and confers no
>> >rights.
>> >> >> >>
>> >> >> >>
>> >> >> >> --------------------
>> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> >> <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> >> <mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl>
>> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >> >Date: Wed, 12 Nov 2003 18:24:46 -0000
>> >> >> >> >Lines: 147
>> >> >> >> >X-Priority: 3
>> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >Message-ID: <OlmSEpUqDHA.2140@TK2MSFTNGP09.phx.gbl>
>> >> >> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >> >81.128.209.62
>> >> >> >> >Path:
>> >> >> >>
>> >> >>
>> >>>>>>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2M SFTNGXA05.phx.gbl!TK2MSFTNmicrosoft.public.dotnet.framework.aspnet.security>> P>> Try>> >> 0
>> >> >> 8
>> >> >> >> phx.gbl!TK2MSFTNGP09.phx.gbl
>> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7550
>> >> >> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >> >> >> >
>> >> >> >> >Yep, that throws an error!
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in
>> >> message
>> >> >> >> >news:mYHvBjUqDHA.1332@cpmsftngxa06.phx.gbl...
>> >> >> >> >> Dave,
>> >> >> >> >>
>> >> >> >> >> I would check to see if it's really parsing your web.config.>> >> >> >adding
>> >> >> >> a
>> >> >> >> >> <foo> tag to your web.config and see if it throws an error.
>> >> >> >> >>
>> >> >> >> >> Jim Cheshire [MSFT]
>> >> >> >> >> Developer Support
>> >> >> >> >> ASP.NET
>> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >> >>
>> >> >> >> >> This post is provided as-is with no warranties and confers no
>> >> >rights.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --------------------
>> >> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >> >References: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >> <ZN#ktdHqDHA.1844@cpmsftngxa06.phx.gbl>
>> >> >> >> >> >Subject: Re: RedirectFromLogin Goes Nowhere?
>> >> >> >> >> >Date: Tue, 11 Nov 2003 20:00:40 -0000
>> >> >> >> >> >Lines: 96
>> >> >> >> >> >X-Priority: 3
>> >> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >> >Message-ID: <#mAc$5IqDHA.1632@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >> >Newsgroups:it>microsoft.public.dotnet.framework.aspnet.securi ty>> >> >> >> >> >NNTP-Posting-Host: host81-128-209-62.in-addr.btopenworld.com
>> >> >> >> >81.128.209.62
>> >> >> >> >> >Path:
>> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7527
>> >> >> >> >> >X-Tomcat-NG:>might>> >> >> >> >> >
>> >> >> >> >> >Thanks for that Jim
>> >> >> >> >> >
>> >> >> >> >> >You are right of course they should ordered differently, but
>> >> >> >> >unfortunately
>> >> >> >> >> >that did not make any difference...
>> >> >> >> >> >
>> >> >> >> >> >This all works fine on my local pc and server, but not on my
>> >ISP's
>> >> >> >> dotnet
>> >> >> >> >> >site (Fasthosts) - is there anything i can ask them that>in>> >be
>> >> >> >> causing
>> >> >> >> >> >this?
>> >> >> >> >> >
>> >> >> >> >> >Thanks again...
>> >> >> >> >> >
>> >> >> >> >> >Cheers
>> >> >> >> >> >
>> >> >> >> >> >Dave
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote>your>> >> >> message
>> >> >> >> >> >news:ZN%23ktdHqDHA.1844@cpmsftngxa06.phx.gbl...
>> >> >> >> >> >> Dave,
>> >> >> >> >> >>
>> >> >> >> >> >> This web.config should work although you should reverse>no>> >> >> <allow>
>> >> >> >> >and
>> >> >> >> >> >> <deny> tags in the <authorization> element.
>> >> >> >> >> >>
>> >> >> >> >> >> Jim Cheshire [MSFT]
>> >> >> >> >> >> Developer Support
>> >> >> >> >> >> ASP.NET
>> >> >> >> >> >> [email]jamesche@online.microsoft.com[/email]
>> >> >> >> >> >>
>> >> >> >> >> >> This post is provided as-is with no warranties and confers>host81-128-209-62.in-addr.btopenworld.com>> microsoft.public.dotnet.framework.aspnet.security>> >> >> >rights.
>> >> >> >> >> >>
>> >> >> >> >> >> --------------------
>> >> >> >> >> >> >From: "dave" <dave@edin.co.uk>
>> >> >> >> >> >> >Subject: RedirectFromLogin Goes Nowhere?
>> >> >> >> >> >> >Date: Tue, 11 Nov 2003 11:07:55 -0000
>> >> >> >> >> >> >Lines: 43
>> >> >> >> >> >> >X-Priority: 3
>> >> >> >> >> >> >X-MSMail-Priority: Normal
>> >> >> >> >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >> >> >> >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >> >> >> >> >> >Message-ID: <etnhQQEqDHA.2416@TK2MSFTNGP10.phx.gbl>
>> >> >> >> >> >> >Newsgroups:>> >> >> >> >> >> >NNTP-Posting-Host:>file>> >> >> >> >> >81.128.209.62
>> >> >> >> >> >> >Path:
>> >> >> >cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
>> >> >> >> >> >> >Xref: cpmsftngxa06.phx.gbl
>> >> >> >> >> >> microsoft.public.dotnet.framework.aspnet.security: 7513
>> >> >> >> >> >> >X-Tomcat-NG:
>> >microsoft.public.dotnet.framework.aspnet.securi ty
>> >> >> >> >> >> >
>> >> >> >> >> >> >Can anyone shed any light on the following:
>> >> >> >> >> >> >
>> >> >> >> >> >> >I have forms authentication setup within the web.config>login>> >> >(see
>> >> >> >> >below)
>> >> >> >> >> >> >which protects the entire website, which brings up the>authenticated>> >> >page
>> >> >> -
>> >> >> >> >OK.
>> >> >> >> >> >> >
>> >> >> >> >> >> >However, even though I have been logged in and>> >it
>> >> >is
>> >> >> >> >still
>> >> >> >> >> >> >returning to the login page. However if i log in againseems>> >will
>> >> >> try
>> >> >> >> to
>> >> >> >> >> go
>> >> >> >> >> >> >off to the originially specified location, but neverthe>> to>> >> >get
>> >> >> >> >there?
>> >> >> >> >> >> >
>> >> >> >> >> >> >If i then directly type in the original URL i tried in>>>>> >very
>> >> >> 1st
>> >> >> >> >> place
>> >> >> >> >> >> it
>> >> >> >> >> >> >resolves fine, as i am now authenticated.
>> >> >> >> >> >> >
>> >> >> >> >> >> >This is extremely baffling - hope someone can help!
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >Web Config settings.
>> >> >> >> >> >> >
>> >> >> >> >> >> ><configuration>
>> >> >> >> >> >> ><system.web>
>> >> >> >> >> >> > <customErrors mode="Off"/>
>> >> >> >> >> >> > <pages smartNavigation="true"/>
>> >> >> >> >> >> > <compilation debug="true"/>
>> >> >> >> >> >> >
>> >> >> >> >> >> ><authentication mode="Forms" >
>> >> >> >> >> >> ><forms name="App1" path="/" loginUrl="login.aspx" >
>> >> >> >> >> >> > <credentials passwordFormat="Clear">
>> >> >> >> >> >> > <user name="tester" password="testing" />
>> >> >> >> >> >> > </credentials>
>> >> >> >> >> >> ></forms>
>> >> >> >> >> >> ></authentication>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > <authorization>
>> >> >> >> >> >> > <allow users="tester"/>
>> >> >> >> >> >> > <deny users="?"/>
>> >> >> >> >> >> > </authorization>
>> >> >> >> >> >> ></system.web>
>> >> >> >> >> >> >
>> >> >> >> >> >> ></configuration>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest



Reply With Quote

