ASP.NET MV3 部署网站 报"Could not load file or assembly ' System.Web.Helpers “ 错的解决方法
2014-08-29 12:42
501 查看
转自:/article/4696836.html
国内很多网站空间都只支持.NET 2.0 和 .NET 3.0 3.5,很少有空间商支持.NET 4的,即使有个别支持.NET 4,但是不支持MVC的默认路由访问形式。
Go Daddy 的主机支持,并且费用很低,系统为 Win 2008 R2 64位,10GB网站空间,网站并发最便宜的也支持100个,PHP支持5.2和5.3,.NET支持 ASP.NET v1.0/2.0/3.0/3.5 和 ASP.NET v4.0,默认为.NET 4,并且默认已经支持MVC 2,如果要支持MVC3,只需要在发布站点的时候,多复制几个DLL文件到BIN文件夹就可以了,DLL清单如下:
System.Web.Abstractions.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.Routing.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.Deployment.dll
DLL打包下载:http://files.cnblogs.com/taven/MVC3_DLL.rar
下载这些DLL复制到网站的bin目录下,重启IIS就可以了。
否则会报如下:
页面显示错误:
Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Web.Infrastructure ...
Could not load file or assembly '...
System.Web.Helpers...
Could not load file or assembly '...
System.Web.Mvc...
Could not load file or assembly '...
System.Web.Razor...
Could not load file or assembly '...
System.Web.Routing ...
Could not load file or assembly '...
System.Web.WebPages...
Could not load file or assembly '...
System.Web.WebPages.Razor...
Could not load file or assembly '...
System.Web.WebPages.Deployment...
国内很多网站空间都只支持.NET 2.0 和 .NET 3.0 3.5,很少有空间商支持.NET 4的,即使有个别支持.NET 4,但是不支持MVC的默认路由访问形式。
Go Daddy 的主机支持,并且费用很低,系统为 Win 2008 R2 64位,10GB网站空间,网站并发最便宜的也支持100个,PHP支持5.2和5.3,.NET支持 ASP.NET v1.0/2.0/3.0/3.5 和 ASP.NET v4.0,默认为.NET 4,并且默认已经支持MVC 2,如果要支持MVC3,只需要在发布站点的时候,多复制几个DLL文件到BIN文件夹就可以了,DLL清单如下:
System.Web.Abstractions.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.Routing.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
System.Web.WebPages.Deployment.dll
DLL打包下载:http://files.cnblogs.com/taven/MVC3_DLL.rar
下载这些DLL复制到网站的bin目录下,重启IIS就可以了。
否则会报如下:
页面显示错误:
Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.Web.Infrastructure ...
Could not load file or assembly '...
System.Web.Helpers...
Could not load file or assembly '...
System.Web.Mvc...
Could not load file or assembly '...
System.Web.Razor...
Could not load file or assembly '...
System.Web.Routing ...
Could not load file or assembly '...
System.Web.WebPages...
Could not load file or assembly '...
System.Web.WebPages.Razor...
Could not load file or assembly '...
System.Web.WebPages.Deployment...
相关文章推荐
- "Asp.Net Web Api MediaTypeFormatter Error for x-www-formurlencoded data" 解决方法
- Asp.Net 之 未能加载文件或程序集 system.web.extensions 解决方法
- IIS6.0注册.NET Framework,设置Web服务扩展解决ASP.NET网站初次部署时的404错误
- ASP.NET使用Coolite.Ext.Web.dll,显示ext"未定义"的解决方法
- ASP.Net部署网站后提示HTTP Error 404.2 – Not Found的解决方法
- 收藏:Asp.Net 连接Oracle数据库 出现"找不到 Oracle 客户端和网络组件" 彻底解决方法!
- 新建ASP.NET项目时出现错误的解决方法(尝试创建WEB项目...)
- [转载]Web服务器运行的不是ASP.NET 1.1 版..."的解决办法
- [收藏]Asp.Net 连接Oracle数据库 出现"找到 Oracle 客户端和网络组件" 彻底解决方法!
- ASP.NET 1.1 没有出现在 IIS 6.0 中的 Web 服务扩展列表中的解决方法。
- asp.net"访问被拒绝,程序集无法加载"原因与解决方法[摘录]
- ASP.NET"无法验证数据"的解决方法
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- 解决 Asp.Net Forums 与现有Web系统 统一登录的方法(:--))
- ASP.NET配置(web.config)无法连接到SQL Server 数据库的解决方法
- VS.NET Web服务器运行的不是ASP.NET 1.1 版"的解决办法
- "ASP.NET Development Server无法开始侦听端口:XXXX"问题的解决方法
- 初学ASP.NET开发web应用时遇到的一些常见问题和解决方法
- "VS.NET Web服务器运行的不是ASP.NET 1.1 版"的解决办法
- asp.net ajax 错误:"sys"未定义问题 解决的方法