首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

新建的MVC项目出错…该怎么处理

2012-02-21 
新建的MVC项目出错……新建的项目直接按F5,出现以下错误:错误1类型“System.Web.Mvc.ModelClientValidationRu

新建的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

[解决办法]
移除相关引用,重新添加

同时注意命名空间

热点排行