ASP.NET MVC - Illegal characters in path - redirect from Application_Error
In my application I generated few url whi开发者_如何转开发ch contained " (double quotes), unfortunately. I corrected the url's but google bot already indexed wrong urls.
Now I get quite often following exception: System.ArgumentException: Illegal characters in path.
The only one place I can catch the error is the Application_Error in the Global.asax - I clean up the url over there and try to redirect to correct url - unfortunately it is not working... The application is not redirecting and I don't know why... Any suggestions?
精彩评论