2012-07-06 64 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?

我該如何解決這個問題?

回答

相關問題