【问题标题】:Unable to load service fabric application after upgrading to latest sdk(2.4.164)升级到最新的 sdk(2.4.164) 后无法加载服务结构应用程序
【发布时间】:2017-02-28 13:15:53
【问题描述】:

我已将 Service Fabric sdk 升级到 2.4.164。现在我无法加载服务结构应用程序。每次打开解决方案,visual studio 都想升级fabric 项目。不幸的是,它每次都失败。它给出了一个错误,如: “升级过程中发生错误。该项目将恢复到原来的状态。无效的 URI:URI 为空。”

来自 VsProjectFault 文件的日志:

Recoverable
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
   at Microsoft.VisualStudio.Azure.Fabric.ApplicationProject.ProjectSystem.DiagnosticEventsPackageLoader.InitializeAsync()
   at Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.AutoLoadMethodStateMachine.<<StartExecution>b__6_0>d.MoveNext()

我应该怎么做才能成功升级项目文件?

【问题讨论】:

  • 您安装了哪个版本的“Microsoft Azure Service Fabric Tools for Visual Studio”?
  • 安装的版本是1.3.40930.2

标签: azure sdk azure-service-fabric


【解决方案1】:

您可能只从 WebPI 更新了 SDK 和运行时。与 2.4 匹配的工具版本应为 1.4.xxxxx。我相信具体的版本其实应该是1.4.50124.2。您能否从 Web 平台安装程序安装“Microsoft Azure Service Fabric SDK 和工具 - 2.4.164(VS2015)”,然后升级成功。

【讨论】:

  • 我现在已经安装了最新版本 2.5.216。 Microsoft Azure Service Fabric SDK and Tools - 2.5.216(VS2015) 我想一旦我从控制面板手动卸载了 Microsoft Azure Service Fabric Tools for Visual Studio。现在每当我通过 WEB PI 安装程序安装 SDK 和工具时,都没有安装 Visual Studio 的工具。可能这就是问题所在。我该如何解决?
  • 您能否调查此处的日志 -> %userprofile%\AppData\Local\Microsoft\Web Platform Installer\logs\webpi 并分享您从 MSI 安装程序返回的错误代码?以下是我在尝试您描述的 DownloadManager 信息时得到的信息:0:MSI 安装产品“Microsoft Azure Service Fabric Tools for Visual Studio 2015 - Base Locale - 1.5.50311.1”的返回值为“0”DownloadManager 信息:0:安装返回产品“Microsoft Azure Service Fabric Tools for Visual Studio 2015 - Base Locale - 1.5.50311.1”的代码成功
  • 我没有收到 Microsoft Azure Service Fabric Tools for Visual Studio 2015 的任何日志。以下是来自 Web PI 安装程序的成功安装列表:link
  • 这里是 Visual Studio 2015 的 1.5 工具的直接链接。您可以尝试安装并查看它是否有效。 download.microsoft.com/download/2/E/E/…
  • 很想知道为什么我必须在堆栈溢出的评论中找到一个链接才能使其正常工作,但实际的官方服务结构页面都没有提供获取正确版本的方法。微软一路走好。
猜你喜欢
  • 1970-01-01
  • 2022-06-15
  • 1970-01-01
  • 2015-07-10
  • 1970-01-01
  • 2017-12-08
  • 2022-12-19
  • 2017-01-20
  • 1970-01-01
相关资源
最近更新 更多