asp.net mvc - Can MVC work with cshtml ending routes? -
i want route .cshtml ending urls particular controller , action.
mvc pipeline blocks such urls , returns 404:
the type of page have requested not served because has been explicitly forbidden.
however if routeexistingfiles
set true
routing starts working static files routed , since not process these requests 404 returned images, css , js files. (actually don't want requests static content go through mvc pipeline.)
setting <add key="webpages:enabled" value="true" />
changes error
type 'asp._page_views_cshtml' not inherit 'system.web.webpages.webpage'.
and routing still not work.
Comments
Post a Comment