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
 
 
解决办法:更改文件目录下的 工程名..csproj,将<ReferenceInclude="System.Web.WebPages"/>改为
<ReferenceInclude="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>
posted @ 2012-11-09 17:48  bradleydan  阅读(270)  评论(0)    收藏  举报