开发者

ASP.NET MVC - Illegal characters in path - redirect from Application_Error

开发者 https://www.devze.com 2023-01-16 22:41 出处:网络
In my application I generated few url whi开发者_如何转开发ch contained \" (double quotes), unfortunately.

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消