ModelClientValidationRule conflict

前端 未结 2 1986
长发绾君心
长发绾君心 2021-01-30 16:25

I have installed vs 2011 developer preview side by side with vs 2010. Now when i run my asp.net mvc 3 project in vs 2010 I am getting the following error in my project where i a

相关标签:
2条回答
  • 2021-01-30 17:08

    The accepted answer was "useful" but after installing MVC4 beta today, a few of my MVC 3 projects would not compile. (ModelClientValidationRule conflict) The fix was:

    Edit:

    ProjectName.csproj
    

    Change

    <Reference Include="System.Web.WebPages"/> 
    

    To

    <Reference Include="System.Web.WebPages, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL "/>
    
    0 讨论(0)
  • 2021-01-30 17:20

    please see the below release notes :

    http://www.asp.net/learn/whitepapers/mvc4-release-notes

    Installing ASP.NET MVC 4 Developer Preview breaks ASP.NET MVC 3 RTM applications.

    ASP.NET MVC 3 applications that were created with the RTM release (not with the ASP.NET MVC 3 Tools Update release) require the following changes in order to work side-by-side with ASP.NET MVC 4 Developer Preview. Building the project without making these updates results in compilation errors.

    http://www.asp.net/learn/whitepapers/mvc4-release-notes#_Toc303253815

    0 讨论(0)
提交回复
热议问题