2012-07-06 62 views
14

我有一个ASP.NET MVC 2网站(VS2010),我已经升级到ASP.NET MVC 3(VS2012)和该工程对当地的IIS7鳍,但发布时,我得到它的主机此异常:无法在主机上加载程序集WebPages.Deployment版本2?

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, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

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

我该如何解决这个问题?

回答

相关问题