I was using Windows authentication in a ASP.NET 1.1 intranet app I'm writing. Now trying to change to FormsAuthentication which I believe I've set up correctly. The problem is that the login creates a user object then calls...
When debugging, what happens is that my default.aspx page is processed but when stepping through with the debugger it gets to the end of the Page_Load method and jumps straight back to the top causing an infinite loop. There are no redirects in default.aspx and Request.IsAuthenticated is true. My web.config holds this:
Would appreciate some help. No way to debug this because there is no line of code that is explicitly causing the loop... HELP!
Code:
FormsAuthentication.RedirectFromLoginPage(thisUser.Name, false);
Code:
<authentication mode="Forms">
<forms loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
Would appreciate some help. No way to debug this because there is no line of code that is explicitly causing the loop... HELP!