Build Errors - 'System.Web.Mvc.ModelClientValidationRule' Conflicts

后端 未结 5 1560
一生所求
一生所求 2020-12-09 03:01

I am trying to \'build\' my MVC3 web app in VS2010 however keep getting the following error:

Error 2 The type \'System.Web.Mvc.ModelClientValidationRule\' exists

5条回答
  •  暖寄归人
    2020-12-09 03:59

    The best way to avoid this conflict is-

    1. Go to solution explorer
    2. Reference
    3. Right click on System.Web.WebPages
    4. Remove

    Now run your application and Enjoy !

提交回复
热议问题