【发布时间】:2018-12-05 18:35:42
【问题描述】:
我正在尝试运行此处找到的 Service Fabric 示例:
Service Fabric Getting Started Sample
我正在将它加载到 Visual Studio 2017 CE 中。我已将 Fabric 应用程序设置为启动项目,它似乎可以很好地构建和部署。
Service Fabric 仪表板显示一切正常运行。
但是,当我尝试使用示例 WebService 项目进行连接时,出现以下错误:
WebService> Unhandled Exception: System.Fabric.FabricConnectionDeniedException: Not authorized to connect ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C43
WebService> at System.Fabric.Interop.NativeRuntime.FabricEndGetNodeContext(IFabricAsyncOperationContext context)
WebService> at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.GetNodeContextEndWrapper(IFabricAsyncOperationContext context)
WebService> at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
WebService> --- End of inner exception stack trace ---
WebService> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
WebService> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
WebService> at Microsoft.ServiceFabric.Services.Runtime.RuntimeContext.<GetOrCreateAsync>d__14.MoveNext()
WebService> --- End of stack trace from previous location where exception was thrown ---
WebService> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
WebService> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
WebService> at Microsoft.ServiceFabric.Services.Runtime.ServiceRuntime.<RegisterServiceAsync>d__0.MoveNext()
WebService> --- End of stack trace from previous location where exception was thrown ---
WebService> at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
WebService> at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
WebService> at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
WebService> at WebService.Program.Main()
我已经看到人们从哪里得到这个,因为他们已经将启动项目更改为 GettingStartedApplication 以外的东西,不幸的是这不是我的问题。
【问题讨论】:
-
when I try to connect using the example WebService project是什么意思?您是否尝试将 WebService 设置为启动项目?你从哪里得到这个错误信息? -
在下面查看我的答案。
标签: visual-studio-2017 azure-service-fabric