类库编译时提示:
错误 166 程序集“xxx.Controllers.Store, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”所使用的“System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”版本高于所引用的程序集“System.Web.Abstractions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”的版本 f:\Tang\xxx.Controllers.Store\bin\Debug\xxx.Controllers.Store.dll Controllers.News
需要将xxx.Controller.News的引用的System.Web.Abstractions的版本重新引用下就行了
未能加载文件或程序集“System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”错误原因是因为PublicKeyToken的值和系统的PublicKeyToken
修改成一致:
<add assembly=”System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
<add assembly=”System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>
<add assembly=”System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>