I've recently moved all my code from my local instance up to a staging environment, along with a database restore, after an epic upgrade from 4.7.2 to 6.2.5 and I have an INTERMITTENT problem whereby ALL pages (most of the time) are being redirected to /login(.aspx), which in turn generates a 404 Error. When I remove my custom 404 page (which I did to get a better error message), the home page says:
No umbraco document matches the url '/login?ReturnUrl=%2f
What's the deal with this? I've done some pretty serious Googling on it and no solutions are working for me. Tried deleting just about everything in AppData and also verified that the permissions are correct (NETWORK SERVICE and IISIUSRS have Full Control) throughout the file system.
Now here's the weird part - I am able to reach the CMS in Chrome and Internet Explorer but not in Safari or Firefox, and have managed to Republish Entire Site, but the error persists. Sometime when I load the backoffice it only partially loads, and sometimes the stylesheet and/or images don't load.
In any case, I get different results when I reload the page repeatedly. Sometimes I get redirected and sometimes not. On both front end and back end. What could be going on here?
But I figured out the issue so in case anyone ends up in this situation, here's what it was for me: Windows auth was switched on on the target environment, and I had:
So the problem was intermittent because while IIS was telling the server to do one thing, the config file was telling it to do another. If Windows auth is enabled, you need to change this to:
Every Page Redirecting to /login
I've recently moved all my code from my local instance up to a staging environment, along with a database restore, after an epic upgrade from 4.7.2 to 6.2.5 and I have an INTERMITTENT problem whereby ALL pages (most of the time) are being redirected to /login(.aspx), which in turn generates a 404 Error. When I remove my custom 404 page (which I did to get a better error message), the home page says:
What's the deal with this? I've done some pretty serious Googling on it and no solutions are working for me. Tried deleting just about everything in AppData and also verified that the permissions are correct (NETWORK SERVICE and IISIUSRS have Full Control) throughout the file system.
Now here's the weird part - I am able to reach the CMS in Chrome and Internet Explorer but not in Safari or Firefox, and have managed to Republish Entire Site, but the error persists. Sometime when I load the backoffice it only partially loads, and sometimes the stylesheet and/or images don't load.
In any case, I get different results when I reload the page repeatedly. Sometimes I get redirected and sometimes not. On both front end and back end. What could be going on here?
Thanks, Garrett
what version of IIS are you using?
IIS 7.5.
But I figured out the issue so in case anyone ends up in this situation, here's what it was for me: Windows auth was switched on on the target environment, and I had:
So the problem was intermittent because while IIS was telling the server to do one thing, the config file was telling it to do another. If Windows auth is enabled, you need to change this to:
That's it. Problem resolved.
Thanks,
Garrett
is working on a reply...