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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -