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

前端 未结 21 1719
猫巷女王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:31

    The page is not found cause the associated controller doesn't exit. Just create the specific Controller. If you try to show the home page, and use Visual Studio 2015, follow this steps:

    1. Right click on Controller folder, and then select Add > Controller;
    2. Select MVC 5 Controller - Empty;
    3. Click in Add;
    4. Put HomeController for the controller name;
    5. Build the project and after Run your project again

    I hope this help

提交回复
热议问题