asp.net - MVC4 Why can't route as .html file? -


i'm use visual studio 2012 mvc4. want web page looks .html suffix. add code on routeconfig:

routes.maproute(    name: "static",    url: "{controller}/{action}/{id}.html",    defaults: new { controller = "home", action = "index", id = urlparameter.optional } ); 

but problem can't access it, page returns 404, , shows message:

the resource not found or removed.......

is there way can let route html page? thanks

disable handler .html extension.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -