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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -