Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 error while debugging an app with "uiAccess=true" in the manifest

I have a C# WinForms application that has "uiAccess" set to "True" in it's manifest file. When I try to start/debug it in Visual Studio 2008 SP1 under Windows 7 x64 (RTM) I get this error:

Running an Accessibility application requires following the steps described in Help.

The help button is a broken link, and clicking ok just closes the application. It is digitally signed, and I can start it just fine in Windows Explorer. Here is the same bug in MS Connect, but unfortunately it's closed:

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=384183

Question: Can anyone else using Vista/Win7 x64 (with UAC enabled) confirm that they experience the same problem? Has anyone seen this problem before and have any idea how to work around it?

like image 663
Jon Tackabury Avatar asked Aug 26 '09 17:08

Jon Tackabury


1 Answers

Try to run Visual Studio with administrators privileges. (Just right-click on it's icon and click on Run As Administator.

When you run Visual Studio with administrative privileges, any process created by it will have administrative rights and UAC will not appear. So when you debug you applications it will have privileges by default.

like image 115
Isaac Avatar answered Oct 15 '22 22:10

Isaac