I get the following error below after opening and compiling my MVC4 project in VS 2010.
CS1705: Assembly 'SDEM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
In my web.config I have
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Anyone have some clue what I should do to solve this version problem?
It shows that the assembly you referenced in the project has different version(4.0.0.1) as what you have in web.config(4.0.0.0).
Please check that the referenced assembly for System.Web.Mvc is the same as written in the web.config.
If not then add reference to the appropriate assembly. Right click References -> Add Reference -> ...
Install Nuget Package Microsoft.AspNet.Mvc for all the project referencing System.Web.Mvc dll
Example: Install-Package Microsoft.AspNet.Mvc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With