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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -