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

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -