asp.net MVC3 “System.Web.Mvc.ModelClientValidationRule”问题

错误提示:

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 "/>

上一篇:JVM_Bind:8080 的解决办法【131031】


下一篇:Android防止按钮快速重复点击