Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies
跟随精通Asp.Net MVC 5 Adam Freeman 第七章SportsStore出现的错误
因为版本的问题,通过可视化的NuGet包管理器解决了
- In your project tree in VS, right-click
References
and go toManage NuGet Packages
. - Go to
Online
,nuget.org
and search for ninject. - Install
Ninject
,Ninject.Web.Common
andNinject.MVC5
(the book says to installMVC3
). - In the
Manage NuGet Packages
menu (from step 1), go toUpdates
,nuget.org
. - Update all modules, especially
Microsoft ASP.NET MVC
.
之后就是升级所有模块
参考:http://stackoverflow.com/questions/24028580/could-not-load-file-or-assembly-system-web-mvc-version-3-0-0-0-or-one-of-its
推荐阅读
- Asp.net|System.Globalization.DateTimeFormatInfo.InvariantInfo
- asp.net|c#文件写入与获取post请求数据
- .NET+C#|掌握 ASP.NET 之路(自定义实体类简介(Microsoft))
- .NET+C#|ASP.NET 2.0中Theme、MasterPage和代码国际化
- .NET导出Excel遇到的错误的解决方法
- .net|利用MSXML2.XMLHTTP的无刷新技术
- 快速理解ASP.NET Core的认证与授权
- asp.net|asp.net错误急警
- 工具|调试、部署Oxite 开源系统
- asp.net|在ASP中读取数字证书(ASP.NET)