setup asp.net mvc route for base url -


when have route setup can trigger controllername/actionname url because not need start url/page.

i not run web api because want use razor views.

public static void registerroutes(routecollection routes)     {         routes.ignoreroute("{resource}.axd/{*pathinfo}");         routes.mapmvcattributeroutes();         routes.maproute(             name: "default",             url: "{controller}/{action}/{id}",             defaults: new { controller = "*", action = "*", id = urlparameter.optional }         );      } 

but when start project , run site see base url in browser: http://localhost:62127/

giving me 404 error.

how can configure project return 403 error iis typically giving me? when directory browsing disabled?


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -