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

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

    For me its solved follow the following steps :

    One reason for this occur is if you don't have a start page or wrong start page set under your web project's properties. So do this:

    1- Right click on your MVC project

    2- Choose "Properties"

    3- Select the "Web" tab

    4- Select "Specific Page"

    Assuming you have a controller called HomeController and an action method called Index, enter "home/index" in to the text box corresponding to the "Specific Page" radio button.

    Now, if you launch your web application, it will take you to the view rendered by the HomeController's Index action method.

提交回复
热议问题