asp.net-mvc – 无法加载汇编WebPages.Deployment版本2在主机?

我有一个ASP.NET MVC 2网站(VS2010),我已经升级到ASP.NET MVC 3(VS2012),这在本地IIS7上工作,但发布时,我在主机上得到这个异常:
Could not load file or assembly 'System.Web.WebPages,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

在一些seartch之后,我发现this表示我应该在一些引用(包括System.Web.WebPages)上设置copyLocal,并且还使用VS2012中的发布工具,但是这会产生以下异常?

Could not load file or assembly 'System.Web.WebPages.Deployment,PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

我找不到任何部署DLL来设置copyLocal?

我该如何解决

解决方法

读了 http://joel.net/getting-asp.net-mvc-3-working-on-discountasp.net

您需要添加对System.Web.WebPages.Deployment的引用,并将其设置为copyLocal.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....