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:
<system.webServer>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".dd" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
Otherwise, you could add a <clear />
inside of fileExtensions to allow any file to be routed.
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