I have very basic routing:
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",parameters
new { controller = "Home", action = "Index", id = "" }
);
The problem is that it works perfectly in all simple cases, like www.xxx.yy/pages/filter/test
". As soon as I add dot "." to {id} part it fails,
returning 'The resource cannot be found.' It happens for www.xxx.yy/pages/filter/test.
Any suggestions?
Just add a slash "/" at the end of the URL: www.xxx.yy/pages/filter/test./
See: Dots in URL causes 404 with ASP.NET mvc and IIS.
Have a look at this post: "The resource cannot be found." error when there is a "dot" at the end of the url
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With