Visual Studio Debugging – Accessibility Applications with uiAccess Attribute Set

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, “Unable to start program” and “The application manifest has the uiAccess attribute set to ‘true’. Running an Accessibility application requires following the steps described in Help.” Of course, the ‘Help’ button takes me nowhere useful.

Running the application from Explorer resulted in a dialog that said, “A referral was returned from the server.”

  1. Find the signed executable in Windows Explorer.
  2. Right click and select Properties.
  3. Select the Digital Signatures tab.
  4. Double-click the signature.
  5. Click View Certificate.
  6. Click Install Certificate.
  7. Click Next.
  8. Select “Place all certificates in the following store”.
  9. Select a “Trusted Root Certificate Authorities”.
  10. Click OK.
  11. Click Next.
  12. Click Finish.
  13. In the Security Warning dialog, click Yes.

This allows the executable to be run directly. Unfortunately, it still doesn’t fix the issue with debugging from Visual Studio. It appears that the only solution is to run the executable directly, then attach the debugger to the running process!

About Jeff Fitzsimons

Jeff Fitzsimons is a software engineer in the California Bay Area. Technical specialties include C++, Win32, and multithreading. Personal interests include rock climbing, cycling, motorcycles, and photography.
This entry was posted in Technology, Windows. Bookmark the permalink.

Leave a Reply

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