2014-05-20 37 views
0

我使用Web Platform Installer在我们的开发服务器上安装了Azure SDK 2.1。更新完成后,我们的测试项目(这是WCF服务)现在已损坏。当您浏览到项目(更新前正在工作)时,会出现以下错误:Azure SDK 2.1 - 无法加载文件或程序集'System.Web.WebPages.Deployment,

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.

所有我搜索引用的MVC。我们不使用MVC,也从来没有,它甚至不应该安装在服务器上。为什么我会收到此错误消息?

编辑:我通过在另一台服务器上测试发现安装“Windows Azure SDK for .NET(VS 2010 SP1) - 2.1”包括MVC 4.0作为依赖项。为什么安装?

回答

0

我已经能够通过简单地卸载由Azure SDK更新安装的MVC 4.0软件包来实现此功能。

为什么这甚至是必要的超出了我,但至少它现在正在工作,并希望这可以帮助其他人有类似的问题。

0

创建一个新的项目,然后测试:

我解决了这个问题,下面将在项目的web.config行......我之前标记在管理的NuGet“Microsoft.AspNet.Mvc/5.1.2” “微软的ASP.NET Web页/ 3.1.2”,我尝试任何事情,但没有工作(真的!!卸载VS和阅读了很多文章)

<dependentAssembly> 
     <assemblyIdentity name="System.Web.WebPages.Deployment" publicKeyToken="31bf3856ad364e35" /> 
     <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> 
     </dependentAssembly> 

好幸运

相关问题