Re: Forms Authentication - Sudden Redirect Failure on Login



Hi Like (and Khaled)

Well unfortunately we could not wait any longer and the box was rebuilt
before I could resolve this issue.

Upon reloading the site from the development XP machine (which has always
worked) the production site functions as expected with the correct redirect.

Thank you Luke for your attempts to resolve the issue and Khaled, sounds
like you have a problem in your code if none of the platforms work. In my
case the development platform functioned correctly but when shipping the
login page and executable to the production environment failed, this said to
me the code was fine.

Do what Luke suggested and create a new simple project aspnet authentication
project and see if that functions in your test environment. If it does then
you need to look deeper into your code. You might further prove the code by
shipping the aspx and assembly to another machine and trying it there.

--
Regards
Stephen Davies


"kelghayesh@xxxxxxxxx" wrote:

Any resolution to this issue? I have a similar problem: developing a
web app in VS 2005 using forms authentication. My dev box is win XP and
the app is in c#. Forms authentication used to work just fine on my dev
box. Recently, the login page is not redirecting to the return URL, and
I keep getting the login page back. I have a directory in the app with
all the pages that require login. The directory as well as the login
page are defined in web.config. Last version of the app is deployed to
a win2003 server is working fine there. Now, I can't deploy the latest
version until I fix forms authentication on my dev box and figure out
what's going on?

The code is very similar to Stephen's and the debug statements yield
similar values. Sounds like an environment issue but I can't figure out
what has happened. What do you guys think. Thanks, Khaled.


Luke Zhang [MSFT] wrote:
To confirm if this is .NET framework issue, you may first try to
re-register the ASP.NET on the server:

Aspnet_regiis -ua

and then:

Aspnet_regiis -i

For more details on Aspnet_regiis:

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/1
f74eac5-9005-4f91-9137-f63b73eefde8.mspx?mfr=true

And you also can try to repair the framework:

http://support.microsoft.com/?scid=kb;en-us;306160

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: Login control and restricted member pages
    ... I think it is likely caused by windows ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... Login control and restricted member pages ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • RE: Impersonation and remote registry access
    ... Reading "App Lockdown", I found that remote registry uses named pipes. ... I'm confident (from examining the thread token during impersonation) that ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.platformsdk.security)
  • RE: WMP 11 Download Songs from URGE
    ... it's a music online download site that need to login to use its service. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vb.general.discussion)
  • Re: WMP 11 Download Songs from URGE
    ... | it's a music online download site that need to login to use its service. ... normally accessing such web site programmatically ... | Microsoft Online Community Support ... | where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vb.general.discussion)
  • Re: AD Authentication From Windows Forms
    ... This is a WinForms app, not a web app. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)