{"id":2581,"date":"2019-02-28T15:31:00","date_gmt":"2019-02-28T14:31:00","guid":{"rendered":"http:\/\/blog.repsaj.nl\/?p=2581"},"modified":"2020-04-01T18:27:36","modified_gmt":"2020-04-01T17:27:36","slug":"azure-local-service-fabric-cluster-wont-hit-debug-breakpoints","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2019\/02\/azure-local-service-fabric-cluster-wont-hit-debug-breakpoints\/","title":{"rendered":"[Azure] Local Service Fabric cluster won&#8217;t hit debug breakpoints"},"content":{"rendered":"<p>Today one in the &#8220;what the heck!?&#8221;-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.<\/p>\n<p>When I tried resetting the cluster itself, I got the following error:<\/p>\n<pre class=\"lang:default decode:true \">Exception calling \"SetAccessRule\" with \"1\" argument(s): \"This access control list is not in canonical form and therefore cannot be modified.\"<\/pre>\n<p>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:<\/p>\n<pre class=\"lang:default decode:true \">End(Delete): Store:Store\\Application1Type, Error:FABRIC_E_FILE_NOT_FOUND<\/pre>\n<p>Hmmm ok&#8230; again not that helpful. I&#8217;ll spare the Google query I&#8217;ve undertaken and skip to the end result:<\/p>\n<p><strong>Add the &#8220;ServiceFabricAdministrators&#8221; and &#8220;ServiceFabricAllowedUsers&#8221; groups to C:\\SFDevCluster\u00a0<\/strong>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&#8217;ll need to reset your cluster to get everything working afterwards.<\/p>\n<p><a href=\"http:\/\/blog.repsaj.nl\/index.php\/2019\/02\/azure-local-service-fabric-cluster-wont-hit-debug-breakpoints\/sfpermissions\/\" rel=\"attachment wp-att-2582\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-2582\" src=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2019\/02\/sfpermissions.png\" alt=\"\" width=\"372\" height=\"494\" srcset=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2019\/02\/sfpermissions.png 372w, http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2019\/02\/sfpermissions-226x300.png 226w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today one in the &#8220;what the heck!?&#8221;-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<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[78,105,203],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-FD","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/2581"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=2581"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/2581\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=2581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=2581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=2581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}