Asp.net mvc ASP.net收到警告-母版页名称无效,因为母版页名称不存在

Asp.net mvc ASP.net收到警告-母版页名称无效,因为母版页名称不存在,asp.net-mvc,windows-8,visual-studio-2012,Asp.net Mvc,Windows 8,Visual Studio 2012,我正在使用Visual Studio 2012。我试图创建一个asp.net视图,但出现以下错误: View Name: Index View Engine : ASPX(C#) create a strongly typed view [checked] I have selected the model class Scaffold template : List Use a layout or master page: ~/Views/Shared/Site.Master ContentP

我正在使用Visual Studio 2012。我试图创建一个asp.net视图,但出现以下错误:

View Name: Index
View Engine : ASPX(C#)
create a strongly typed view [checked]
I have selected the model class
Scaffold template : List
Use a layout or master page: ~/Views/Shared/Site.Master
ContentPaceholder Id : content
我收到的错误/警告

母版页名称无效,因为母版页名称不存在

我怎样才能解决这个问题


我发现了一个类似的问题,但我不理解公认的解决方案


注意:这是我创建的一个MVC应用程序。

我刚才也遇到了同样的问题。将母版页移动到视图文件夹中的共享文件夹后,警告消失。

我从来没有看到过具体的错误。您收到的错误消息是逐字逐句的吗?是的,母版页名称无效,因为命名的母版页不存在。我发现了类似的问题,但我不理解接受的解决方案。