asp.net core mvc - HTTP Error 403.14 in ASP.NET5 MVC6 -


i exploring asp.net 5 mvc 6 web app new visual studio community 2015 rc. dotnet framework 4.6.

i've added reference microsoft.aspnet.mvc (6.0.0-beta4) nuget. created models,views & controllers directory. added homecontroller , view.

here startup.cs-

public class startup {     public void configureservices(iservicecollection services)     {         services.addmvc();     }      public void configure(iapplicationbuilder app)     {           app.usemvc();     } } 

home conctoller-

public class homecontroller : controller {     public iactionresult index()     {         return view();     } } 

but while try run project, browser shows

http error 403.14

a default document not configured requested url.

do need configure?

try-

public class startup {     public void configureservices(iservicecollection services)     {         services.addmvc();     }      public void configure(iapplicationbuilder app)     {         app.usemvc(routes =>         {             routes.maproute(                 name: "default",                 template: "{controller}/{action}/{id?}",                 defaults: new { controller = "home", action = "index" });         });     }  } 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -