I am attempting to run a Service Fabric example found here:
Service Fabric Getting Started Sample
I am loading it into Visual Studio 2017 CE. I have set the Fabric app as the startup project and it appears to build and deploy just fine.
The Service Fabric dashboard shows everything up and running.
However, when I try to connect using the example WebService project I get the following error:
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()
I've seen where people get this because they have changed the startup project to something other than GettingStartedApplication, unfortunately that's not my issue.
Set Service Fabric applications(Orange color projects) as the Startup Projects and not the .Net projects and then the error should be gone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With