ASP.NET MVC Page Won't Load and says “The resource cannot be found”

前端 未结 21 1774
猫巷女王i
猫巷女王i 2020-12-09 14:51

I am having a problem where I try to open my ASP.NET MVC application but I get the ASP.NET error page which says this:

Server Error in \'/\' Applicati

21条回答
  •  清歌不尽
    2020-12-09 15:33

    I got the same error when building. The default is to use URLRoute settings for navigating. If you select the "Set as Startup Page" property by right clicking any cshtml page, that throws this error because there are always a routing to the current page under the Global.asax file.

    Look at Project Properties for Startup Path and delete it.

提交回复
热议问题