asp.net-mvc-4 – 程序集使用System.Web.Mvc,Version = 4.0.0.1,其版本高于引用的程序集System.Web.Mvc,Version = 4.0.0.0

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

编译错误

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

编译器错误消息:

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\'

最佳答案 检查您的项目之一是使用4.0 mvc引用,新添加的项目是4.01.

要解决此问题:

>只需在您的解决方案中检查所有mvc参考.
>然后右键单击它和属性检查它的版本.
>如果可能,请删除所有此引用并添加4.0或4.01的新内容

就这样! 🙂

点赞