查看作为起始页面

时间:2012-02-11 12:47:06

标签: c# asp.net visual-studio asp.net-mvc-3

我根本不了解ASP.Net,我在视图中右键单击文件Index.cshtml并意外选择“设置为起始页” 现在,当我运行应用程序(Ctrl + F5)时,会发生错误

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.      
Requested URL: /Views/Home/Index.cshtml

1 个答案:

答案 0 :(得分:1)

您可以更改“项目”属性中的设置,此其他堆栈文章应该有所帮助:Visual Studio ASP.Net MVC undo set as start page action