Routing:
context.MapRoute(
"Dashboard_default",
"Dashboard/{controller}/{action}/{jobName}",
new { action = "Index", controller = "Dashboard", jobName = UrlParameter.Optional }
);
But for Route
http://localhost/candidate/Dashboard/Overview/Show/sdfdsf.xx.dd
I recieve:
HTTP Error 404.7 – Not Found
The request filtering module is configured to deny the file extension.
In the same time, route
http://localhost/candidate/Dashboard/Overview/Show/sdfdsf.xx
Gives right response.
I assume some issue with IIS, have anyone seen that before?
To allow that particular url, in your web.config you could add this:
Otherwise, you could add a
<clear />inside of fileExtensions to allow any file to be routed.