MVC3组件冲突
错误:Error1The
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'c:\users\derek\documents\visual
studio 2010\Projects\MvcApplication1\MvcApplication1\Models\AccountModels.cs24228MvcApplication1
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'c:\users\derek\documents\visual
studio 2010\Projects\MvcApplication1\MvcApplication1\Models\AccountModels.cs24228MvcApplication1
解决办法:更改文件目录下的 工程名.
.csproj,将<ReferenceInclude="System.Web.WebPages"/>改为<ReferenceInclude="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>

浙公网安备 33010602011771号