c# - Issue with return URL Authorize issue MVC4 -


i have written application in mvc4 , deployed server.

i having issue whereby when user tries navigate url has [authorize] attribute locally redirects user to.

/account/login?returnurl=%2fevents%2fcreateevent 

however on server finding adding characters start of url?

/~/account/login?returnurl=%2fevents%2fcreateevent 

this throwing 404 exception due /~/

when user authenticated , navigates events/createevent works correctly, fails when not!

does know why?

have checked web.config forms authentication setup.

might bit this.

<authentication mode="forms">       <forms loginurl="~/account/login" timeout="2880" /> </authentication> 

try removing tilde ~


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

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