asp.net MVC3 “System.Web.Mvc.ModelClientValidationRule”问题
2014-06-03 11:12 马伟 阅读(401) 评论(0) 编辑 收藏 举报错误提示:
Error 1 The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'
解决方法:
打开“.csproj”文件,将<Reference Include="System.Web.WebPages"/>
修改为:
<Reference Include="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>