我已将服务结构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()
如何成功升级项目文件?
答案 0 :(得分:0)
您可能只是从WebPI更新了SDK和Runtime。匹配2.4的工具版本应为1.4.xxxxx。我认为具体版本实际上应该是1.4.50124.2。您是否可以安装&#34; Microsoft Azure Service Fabric SDK和工具 - 2.4.164(VS2015)&#34;来自Web Platform Installer,然后应该成功升级。