asp.net mvc 4 - Redirects not working with OOTB web application -


from defauly asp.net web application when clicking on links on layout page instead of being directed

home/contact 

i getting redirected following url:

http://localhost:49823/account/login?returnurl=%2fhome%2fcontact 

i had following section in web config:

<authentication mode="forms">   <forms loginurl="~/account/login" timeout="2880" /> </authentication> <authorization>   <deny users="?"/> </authorization> 

this blocking access register page changed deny allow

remove part

<authorization>  <deny users="?"/> </authorization> 

and use authorize attribute


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -