Search code examples
asp.netasp.net-membershipasp.net-mvc-5identityasp.net-identity

Error HTTP 404.11 passing account activation Token by querystring


I'm trying to implement password reset funcionallity. I use the ASP.NET Identity.

I am using the UserManager.GetConfirmationToken that returns a token like this:

UW/cj4xUj08kiGCntnWs7z1eUcWlyfNczH5IZfvf0ScTi4L1jgdkkus/Zb5ROJOWb%2b1XAVRSiBUvVGnESfEyauDDa4u%2bPDUH6D/CIpwPcFYRvLi%2b%2bq6f%2bRIhKHRTsGMV0y8lXpSZ5VqySWGSSaW9kofGage/IjW4HrvONeEtA4Szov3u7HgmqEUf0yzgivJ0

Then, I compose my URL and I send it by Email to the registered user. The url to activate the account is like this:

http://localhost:4322/Account/Confirm/UW/cj4xUj08kiGCntnWs7z1eUcWlyfNczH5IZfvf0ScTi4L1jgdkkus/Zb5ROJOWb%2b1XAVRSiBUvVGnESfEyauDDa4u%2bPDUH6D/CIpwPcFYRvLi%2b%2bq6f%2bRIhKHRTsGMV0y8lXpSZ5VqySWGSSaW9kofGage/IjW4HrvONeEtA4Szov3u7HgmqEUf0yzgivJ0

When I click, this error occurs:
Error HTTP 404.11 - Double escape sequence issue


Solution

  • You may need to encode URL using httputility.urlencode