My ISP has recently had several permission issues on my site which is hosted on a shared IIS box.
My MVC5 application has no code on the default page which requires authentication, but there are areas which do
I have webpublished my application to a subdirectory "test" and I'm currently getting a infinite redirect loop when I try to load any of the [AllowAnonymous] pages which as a result give a 404.
(i think this 404 is the result of a query string too long)
If I webpublish to test2 the "same" code works without this issue.
I've tried removing items from the _layout.cshtml to see if I can spot what call is causing this but after stripping all items out I still get this error.
Does anyone have any suggestions what I can use to diagnose where the problem lies?
Usually that is the problem, that Login page does not allow unauthorized users: you get endless loop - unauthorized user is not allowed to see login page, so he is redirected to login page to get authorization.
So either need
[AllowAnonymous]
attribute on your login action in controller or add to web.config: