新建的MVC项目出错……
新建的项目
直接按F5,出现以下错误:
错误1类型“System.Web.Mvc.ModelClientValidationRule”
同时存在于“C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll”
和“C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll”
D:\wksp\ServicesDataMgr\ServicesDataMgr\Models\AccountModels.cs24228ServicesDataMgr
错误2类型“System.Web.Mvc.ModelClientValidationStringLengthRule”
同时存在于“C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll”
和“C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll”中D:\wksp\ServicesDataMgr\ServicesDataMgr\Models\AccountModels.cs24521ServicesDataMgr
版本:asp.net mvc 3
vs 2010 sp1
[解决办法]
移除相关引用,重新添加
同时注意命名空间