CS1702 Runtime error with Kendo.Mvc and System.Web.Mvc 4.0.0.1

We have a problem trying to connect Kendo.Mvc to version 4.0.0.1 of System.Web.Mvc

Kendo.Mvc version

Kendo.Mvc, Version=2013.3.1324.440, Culture=neutral, PublicKeyToken=121fae78165ba3d4

      

This assembly references version 4.0.0.0 of System.Web.Mvc

We have added binding redirection to our Web.Config

  <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.1" />
  </dependentAssembly>

      

The solution builds just fine, but at runtime we get this ...

CS1702: Warning as Error: Assuming assembly reference 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' matches 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35', you may need to supply runtime policy

      

+3


source to share


1 answer


This might help: http://blogs.msdn.com/b/webdev/archive/2014/10/16/10565300.aspx?PageIndex=2 . He suggests updating the MVC4 package to resolve this warning (remove -which for actual update)



Update-Package Microsoft.AspNet.Mvc -Version 4.0.40804.0 -whatif

      

+1


source







All Articles