程序集使用System.Web.Mvc,Version = 4.0.0.1,其版本高于引用的程序集System.Web.Mvc,Version = 4.0.0.0

时间:2015-06-26 06:50:52

标签: asp.net-mvc-4

最近我们从BeyondThemes买了主题。当我们将它与我们的MVC4.0项目集成时,我们会遇到错误。请帮助..

编译错误

  

描述:编译服务此请求所需的资源时发生错误。请查看以下特定错误详细信息并相应地修改源代码。

编译器错误消息:

CS1705: Assembly \'BeyondThemes.Bootstrap, Version=2.6.3.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\'

2 个答案:

答案 0 :(得分:1)

请确保您已通过以下链接将MVC从4.0.0.0修补到4.0.0.1:https://support.microsoft.com/en-us/kb/2993928?wa=wsignin1.0

如果您有并且仍然遇到该错误,您可能需要使用nuget重新安装MVC 4.

修改

看起来链接已经死了; nuget可能是您更新的最佳选择。

答案 1 :(得分:1)

Check one of your project is referenced with 4.0 mvc and newly added project has 4.01.

To resolve this:

  1. simply Check in your solution all mvc reference.
  2. Then check it version using right click on it and property.
  3. if possible remove all this reference and add new of 4.0 or 4.01

That's all! :)