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

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.