Resolving “Not Authorized to Connect” error while running Azure Service Fabric application

Hi,

If you’re relatively new to Azure Service Fabric, then there is a chance you might run into this issue wherein you start debugging your service fabric application in Visual Studio 2015 and you run into this exception.

Not Authorized to connect

The thing here to be noted is, when you create a service fabric application in Visual Studio 2015, there are 2 projects that get created: See below screen shot.

solution-explorer

In the above sample, the WebApi is the Fabric Service and the SFApplicationDemo is the Fabric App (The one with the sf-logo project logo).

You need to set THIS (the Fabric APP – the one with the above logo) as the startup project and NOT the Fabric Service. This will resolve the issue.

Hope this helps!!

[Refs]

https://social.msdn.microsoft.com/Forums/en-US/cd2d385a-104f-44f9-aa8f-09708909b150/while-creating-servicefabricruntime-i-am-getting-error-not-authorized-to-connect-is-coming?forum=AzureServiceFabric

Leave a Reply

Your email address will not be published. Required fields are marked *