[Azure] Local Service Fabric cluster won’t hit debug breakpoints

Today one in the “what the heck!?”-category. I had setup a freshly installed VM with Service Fabric SDK and Visual Studio, to debug a Service Fabric application. When I ran the app from VS, it got deployed into Service Fabric, all lights green. But weirdly, none of my breakpoints in Visual Studio were hit. So I tried numerous things like checking the debug profile in VS, rebuilding, removing the application, etc. etc. All to no avail.

When I tried resetting the cluster itself, I got the following error:

Access Control Lists are usually tied to folders, but of course this very helpful error does not include the actual folder. In the event log, a number of warnings were also feature, like:

Hmmm ok… again not that helpful. I’ll spare the Google query I’ve undertaken and skip to the end result:

Add the “ServiceFabricAdministrators” and “ServiceFabricUsers” groups to C:\SFDevCluster with Full Control permissions. Those groups were not there in my case and once added, everything started behaving normally again. So not sure why they were not there, but adding them fixed everything. You’ll need to reset your cluster to get everything working afterwards.

Leave a Reply

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