不完全确定这里发生了什么;任何帮助,将不胜感激。.NET MVC暧昧类型参考
我正在尝试创建一个新的.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">
任何站出来的是我完全错了吗?
我得到了同样的错误时升级的项目从MVC 2 MVC 5.必须同时在web.config文件中,以取代System.Web.Mvc版本(在〜/和〜/查看/)。 – 2014-01-14 00:59:13