gpt4 book ai didi

visual-studio-2017 - 服务结构错误: Not authorized to connect

转载 作者:行者123 更新时间:2023-12-02 14:11:03 25 4
gpt4 key购买 nike

我正在尝试运行此处找到的 Service Fabric 示例:

Service Fabric Getting Started Sample

我正在将其加载到 Visual Studio 2017 CE 中。我已将 Fabric 应用程序设置为启动项目,它似乎构建和部署得很好。

Visual Studio 2017 CE

Service Fabric 仪表板显示一切已启动并正在运行。

Fabric Dashboard

但是,当我尝试使用示例 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 之外的其他项目,不幸的是这不是我的问题。

最佳答案

将 Service Fabric 应用程序(橙色项目)设置为启动项目而不是 .Net 项目,然后错误就会消失

关于visual-studio-2017 - 服务结构错误: Not authorized to connect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51053046/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com