ASP.NET 5 Beta6(MVC)上有一个工作项目,我想将其更新为Beta7版本。所以在这个步骤之后:
project.json
和global.json
个文件中)我在运行后在Google Chrome控制台中收到了所有内容文件的消息:
Failed to load resource: the server responded with a status of 404 (Not Found)
答案 0 :(得分:0)
解决方案是根据this announcement更新Startup.cs代码。
public void Configure(IApplicationBuilder app)
{
app.UseMvc(routes =>
{
routes.MapRoute(
name: "DefaultController",
template: "{controller=Home}/{action=Index}/{id?}"
);
});
app.RunIISPipeline(); //New
}