The view 'Index' or its master was not found

前端 未结 9 1405
南方客
南方客 2020-12-03 16:03

I\'m new to the C# MVC project type and when I created an empty C# MVC project, I noticed the following error:

The view \'Index\' or its master was not found         


        
9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 16:15

    A useful diagnostic step is to right click inside the Controller's Action, choose "Go To View".

    If Visual Studio can find the view, then it's probably in the right folder, so re-check your URL. For example, if using an Area then the area name should be in the URL:

    /Area/Controller/Action
    

提交回复
热议问题