{"id":2295,"date":"2014-01-12T14:26:25","date_gmt":"2014-01-12T22:26:25","guid":{"rendered":"http:\/\/www.curlybrace.com\/words\/?p=2295"},"modified":"2016-08-09T14:27:14","modified_gmt":"2016-08-09T21:27:14","slug":"visual-studio-debugging-accessibility-applications-with-uiaccess-attribute-set","status":"publish","type":"post","link":"https:\/\/www.curlybrace.com\/words\/2014\/01\/visual-studio-debugging-accessibility-applications-with-uiaccess-attribute-set\/","title":{"rendered":"Visual Studio Debugging &#8211; Accessibility Applications with uiAccess Attribute Set"},"content":{"rendered":"<p>Debugging the application from Visual Studio first resulted in a dialog telling me I needed to restart Visual Studio as Administrator. After doing so, trying to run in the debugger resulted in an error that read, &#8220;Unable to start program&#8221; and &#8220;The application manifest has the uiAccess attribute set to &#8216;true&#8217;. Running an Accessibility application requires following the steps described in Help.&#8221; Of course, the &#8216;Help&#8217; button takes me nowhere useful.<\/p>\n<p>Running the application from Explorer resulted in a dialog that said, &#8220;A referral was returned from the server.&#8221;<\/p>\n<ol>\n<li>Find the signed executable in Windows Explorer. <\/li>\n<li>Right click and select Properties. <\/li>\n<li>Select the Digital Signatures tab. <\/li>\n<li>Double-click the signature. <\/li>\n<li>Click View Certificate. <\/li>\n<li>Click Install Certificate. <\/li>\n<li>Click Next. <\/li>\n<li>Select &#8220;Place all certificates in the following store&#8221;. <\/li>\n<li>Select a &#8220;Trusted Root Certificate Authorities&#8221;. <\/li>\n<li>Click OK. <\/li>\n<li>Click Next. <\/li>\n<li>Click Finish. <\/li>\n<li>In the Security Warning dialog, click Yes. <\/li>\n<\/ol>\n<p>This allows the executable to be run directly. Unfortunately, it still doesn&#8217;t fix the issue with debugging from Visual Studio. <a href=\"https:\/\/social.msdn.microsoft.com\/forums\/windowsdesktop\/en-us\/7a42efab-5ce8-456f-8a58-dfedbc2cefcb\/debugging-with-uiaccesstrue\">It appears that the only solution is to run the executable directly, then attach the debugger to the running process!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debugging the application from Visual Studio first resulted in a dialog telling me I needed to restart Visual Studio as Administrator. After doing so, trying to run in the debugger resulted in an error that read, &#8220;Unable to start program&#8221; &hellip; <a href=\"https:\/\/www.curlybrace.com\/words\/2014\/01\/visual-studio-debugging-accessibility-applications-with-uiaccess-attribute-set\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,283],"tags":[],"class_list":["post-2295","post","type-post","status-publish","format-standard","hentry","category-technology","category-windows-technology"],"_links":{"self":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/comments?post=2295"}],"version-history":[{"count":4,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2295\/revisions"}],"predecessor-version":[{"id":2391,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/posts\/2295\/revisions\/2391"}],"wp:attachment":[{"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/media?parent=2295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/categories?post=2295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.curlybrace.com\/words\/wp-json\/wp\/v2\/tags?post=2295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}