Try our conversational search powered by Generative AI!

Cannot login to Commerce Manager after deploy to new server

Vote:
 

Hi!

I just deployed our Commerce site including the Manager to a new server but now I can't login to the manager, I get an infinite loop:

/Apps/Shell/Pages/Login.aspx?ReturnUrl=%2FApps%2FShell%2FPages%2FLogin.aspx%3FReturnUrl%3D%252FApps%252FShell%252FPages%252FLogin.aspx%253FReturnUrl%253D%25252FApps%25252FShell%25252FPages%25252FLogin.aspx%25253FReturnUrl%25253D%2525252FApps%2525252FShell%2525252FPages%2525252FLogin.aspx%2525253FReturnUrl%2525253D%252525252FApps%252525252FShell%252525252FPages%252525252FLogin.aspx%252525253FReturnUrl%252525253D%25252525252FApps%25252525252FShell%25252525252FPages%25252525252FLogin.aspx%25252525253FReturnUrl%25252525253D%2525252525252FApps%2525252525252FShell%2525252525252FPages%2525252525252FLogin.aspx%2525252525253FReturnUrl%2525252525253D%252525252525252FApps%252525252525252FShell%252525252525252FPages%252525252525252FLogin.aspx%252525252525253FReturnUrl%252525252525253D%25252525252525252FApps%25252525252525252FShell%25252525252525252FPages%25252525252525252FLogin.aspx%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FApps%2525252525252525252FShell%2525252525252525252FPages%2525252525252525252FLogin.aspx%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FApps%252525252525252525252FShell%252525252525252525252FPages%252525252525252525252FLogin.aspx%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FApps%25252525252525252525252FShell%25252525252525252525252FPages%25252525252525252525252FLogin.aspx%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FApps%2525252525252525252525252FShell%2525252525252525252525252FPages%2525252525252525252525252FLogin.aspx%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FApps%252525252525252525252525252FShell%252525252525252525252525252FPages%252525252525252525252525252FLogin.aspx%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252FApps%25252525252525252525252525252FShell%25252525252525252525252525252FPages%25252525252525252525252525252FLogin.aspx%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252F

Any ideas why this is? It works just fine on my machine and on the production and UAT server but not on our DEV server?

Thanks!

/Kristoffer

#215856
Jan 15, 2020 16:45
Vote:
 

Anonymous authentication was disabled in the IIS, enable it and the login dialog shows.

#215873
Jan 16, 2020 10:34
Vote:
 

Disable anonymous authentication is a smart quick fix, but I guess you want to figure out the underlaying issue to avoid this happen on your production environment :) 

I think your dev server missed the following location settings in your commerce manager web.config. 

   <location path="Apps/Shell/Styles">
     <system.web>
       <authorization>
         <allow users="*" />
       </authorization>
     </system.web>
   </location>
   <location path="Apps/Shell/Pages/Login.aspx">
     <system.web>
       <authorization>
         <allow users="*" />
       </authorization>
     </system.web>
   </location>
   <location path="Apps/Shell/EPi/Shell/Light">
     <system.web>
       <authorization>
         <allow users="*" />
       </authorization>
     </system.web>
   </location>  

In case, if you encounter other issues, check the following blog post and I hope you can find your answers.

https://javafun.github.io/setup-episerver-cms-and-commerce-with-aspnet-identity-from-scratch/

#215918
Jan 17, 2020 13:43
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.