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.”
- Find the signed executable in Windows Explorer.
- Right click and select Properties.
- Select the Digital Signatures tab.
- Double-click the signature.
- Click View Certificate.
- Click Install Certificate.
- Click Next.
- Select “Place all certificates in the following store”.
- Select a “Trusted Root Certificate Authorities”.
- Click OK.
- Click Next.
- Click Finish.
- 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!