【发布时间】:2010-09-08 02:15:56
【问题描述】:
不完全确定这里发生了什么;任何帮助将不胜感激。
我正在尝试创建一个新的 .NET MVC Web 应用程序。我很确定我已正确设置,但出现以下错误:
The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly
'C:\MyProject\bin\System.Web.Mvc.DLL' or from assembly
'C:\MyProject\bin\MyProject.DLL'. Please specify the assembly explicitly in the type name.
它报告的源错误如下:
Line 1: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
Line 2:
Line 3: <asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
我做错了什么?
【问题讨论】:
标签: asp.net-mvc