ASP .NET project moved to IIS7 breaks login page

An ASP .NET project was migrated to IIS7 on Windows Server 2008. It uses the ASP .NET Membership Provider for authenticating users.

Whenever I navigate to the Login.aspx page, it now appends "?ReturnUrl=%2fIMS%2fLogin.aspx". See below.

http://s900e229/IMS/Login.aspx?ReturnUrl=%2fIMS%2fLogin.aspx should just be http://s900e229/IMS/Login.aspx like it was on the old server.

As a result, it is making users log in twice and is also causing some web services to fail. Any help is much appreciated!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nightshadzAuthor Commented:
The below screenshot is from a fiddler trace showing how it's working in IIS7 (lines 19, 20 and 21) compared to the old server (lines 23 and 24).

Fiddler Trace
Dan McFaddenSystems EngineerCommented:
I believe this article will help out.


It is probably an issue of having multiple methods of authentication enabled on the site.  The author's example appears to mirror your issue.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nightshadzAuthor Commented:
Thanks! While this article wasn't the solution, the comments led me in the right direction. It was changing a setting in the application pool for managed pipeline mode: Classic.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.