November Happy Hour will be moved to Thursday December 5th.

Unable to log in to Commerce Manager, stuck in redirection loop

Vote:
 

Hi all,

I've just completed these steps to the letter with the 10.2.0 version of CMS and the 10.2.1 version of Commerce.

http://world.episerver.com/documentation/getting-started/commerce/2--creating-your-project/

I can get everything to work, except that I cannot open Commerce Manager due to the redirection loop below. Any advice on where I should look?

http://localhost:50742/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FReturnUrl%3D%252FAccount%252FLogin%253FReturnUrl%253D%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FAccount%2525252525252525252525252FLogin%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FAccount%252525252525252525252525252FLogin%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252FAccount%25252525252525252525252525252FLogin%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252FAccount%2525252525252525252525252525252FLogin%2525252525252525252525252525253FReturnUrl%2525252525252525252525252525253D%252525252525252525252525252525252FAccount%252525252525252525252525252525252FLogin%252525252525252525252525252525253FReturnUrl%252525252525252525252525252525253D%25252525252525252525252525252525252FAccount%25252525252525252525252525252525252FLogin%25252525252525252525252525252525253FReturnUrl%25252525252525252525252525252525253D%2525252525252525252525252525252525252FAccount%2525252525252525252525252525252525252FLogin%2525252525252525252525252525252525253FReturnUrl%2525252525252525252525252525252525253D%252525252525252525252525252525252525252FAccount%252525252525252525252525252525252525252FLogin%252525252525252525252525252525252525253FReturnUrl%252525252525252525252525252525252525253D%25252525252525252525252525252525252525252F

Thanks!

P.S. Clearing the cookies does not help.

#173591
Edited, Jan 03, 2017 10:27
Vote:
 

Hi,

Did you start the front-end site (CMS site) and let the migration steps finished?

Regards,

/Q

#173594
Jan 03, 2017 11:19
Vote:
 

Hi Quan,

Yes, the migration page reports that migration is completed.

#173595
Jan 03, 2017 11:27
Vote:
 

Do you use the default membership provider, or did you change it to Owin or something like that?

/Q

#173596
Jan 03, 2017 11:28
Vote:
 

The front-end and back-end website both use the CMSMembershipProvider and CMSRoleProvider.

#173597
Jan 03, 2017 11:46
Vote:
 

It seems that you start Commerce Manager site before the front-end site - the document is not correct in that order and that will be updated. Does IISRESET help?

#173602
Jan 03, 2017 13:38
Vote:
 

Thanks for the information. Unfortunately an IISRESET does not help.

#173609
Edited, Jan 03, 2017 14:29
Vote:
 

Hi, 

IMO this is a bug, could you try to browse logout page: http://commercemanagerref/Apps/Shell/Pages/Logout.aspx

Or edit Global.asax in Commerce Manager:

if (!Request.IsAuthenticated || Request.Url.AbsoluteUri.IndexOf("logout", StringComparison.OrdinalIgnoreCase) >= 0 || Request.Url.AbsoluteUri.IndexOf("login", StringComparison.OrdinalIgnoreCase) >= 0 )
        {
            return;
        }

add this to Application_AuthorizeRequest method.

#173851
Edited, Jan 11, 2017 8:14
Vote:
 
#174301
Edited, Jan 24, 2017 9:55
Vote:
 

Hi all,

I've found the solution. When creating the empty webproject for the Commerce Manager site, it is very important to select Empty project instead of MVC or anything else. Otherwise routes will get messed up. The templates have changed for ASP.NET Applications in Visual Studio 2015. It's something you might overlook. I hope this helps others!

#174311
Jan 24, 2017 11:29
Vote:
 

That's good to know. We actually did mention "ASP.NET Empty Web Application" in the link you posted.

#174312
Jan 24, 2017 11:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.