asp.net mvc - custom attribute routing with suffix -
i want create url this:
www.example.com/content/page.html on top of contentcontroler use:
[routeprefix("home")] and on top of index action use:
[route("page.html")] but when request url error happen:
http error 404.0 - not found how can solve problem? help
you need change web.config working. add in line below:
<system.webserver> <modules runallmanagedmodulesforallrequests="true" /> </system.webserver> further information on here: http://www.iis.net/configreference/system.webserver/modules
Comments
Post a Comment