开发者

Forms authentication infinite loop

I have an application that works great on localhost with forms authentication.

I deployed it to the deployment开发者_如何学Python machine and it to the build machine and received and endless set of 302 redirects.

I try logging onto the deployment machine and access the page via the deployment machines ip and it works again.

So it is not working when I try and access the site from my computer to the build computer.

What could be causing this?


I had this problem a few weeks ago. My problem was that my Default.aspx required roles/permissions that the user I was trying to log with did not have.

Default.aspx (anonymous user) -> Login.aspx -> [logged in] -> Default.aspx (user denied access) -> automatic redirect to the main page -> Default.aspx (user denied) -> endless loop.

I fixed it by removing any permissions required for my default page and making sure the permissions in my web.config were Ok.


There's most likely an IIS configuration issue.

  • Determine that your Authentication is set to allow anonymous.
  • Ensure your default page is specified in the list in IIS.


And it was because the time on the server was different then the time on my client machine. Who knew such a thing could happen? Not me.

The sad part is I changed the time hours ago but I put it at AM instead of PM. Awesome!


I resolved this issue on a Windows XP machine with IIS 5.1 for a .NET 1.1 site by changing the ASP.NET version correctly to 1.1.4322 instead of 2.0.50727 (what it was set to).

Just wanted to mention that in case it helps someone else. I feel silly for not realising that sooner. :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜