After converting MVC 4 project to MVC 5 I am getting an error "this website has redirect loop"

Posted by ramadesai108-25302 under ASP.NET MVC on 1/11/2014 | Points: 10 | Views : 2417 | Status : [Member] | Replies : 2
Hello,
After converting MVC 4 project to MVC 5 I am getting an error "this website has redirect loop". In my web.config file I have the following:
<authentication mode="Forms">
<forms loginUrl="~/Account/Register" timeout="2880" />
</authentication>
When I try to click on any menu item, it tries to redirect to /Account/Register page. This was working fine before the conversion. How do I resolve this?

Thanks.




Responses

Posted by: Sheonarayan on: 1/13/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
This happens when you are redirecting to the same page again and again.

What is your Authorization tag looks like in web.config file? Looks like that is causing repetitive redirect.

Also, try to user another browser or completely clean the current browser cookies and try again.

YOu can also use Fiddler or Firebug>Network to see what is happening.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

ramadesai108-25302, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: ramadesai108-25302 on: 1/14/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Sheo,
I have no Authorization tag in my web.config. I tried other browsers but had the same issue. Cleared cookies several times and still the same issue.

Thanks.

ramadesai108-25302, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response