使用“uiAccess=true”调试应用程序时出现 Visual Studio 2008 错误在清单中

发布于 2024-08-03 14:08:18 字数 601 浏览 3 评论 0原文

我有一个 C# WinForms 应用程序,其清单文件中的“uiAccess”设置为“True”。当我尝试在 Windows 7 x64 (RTM) 下的 Visual Studio 2008 SP1 中启动/调试它时,出现以下错误:

运行辅助功能应用程序需要遵循帮助中描述的步骤。

帮助按钮是一个损坏的链接,单击“确定”只会关闭应用程序。它经过数字签名,我可以在 Windows 资源管理器中正常启动它。这是 MS Connect 中的相同错误,但不幸的是它已关闭:

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

问题:使用 Vista/Win7 x64(启用 UAC)的其他人能否确认他们遇到了相同的情况问题?有没有人以前见过这个问题并且知道如何解决它?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

金橙橙 2024-08-10 14:08:18

尝试以管理员权限运行 Visual Studio。 (只需右键单击它的图标,然后单击以管理员身份运行

当您以管理权限运行 Visual Studio 时,它创建的任何进程都将具有管理权限,并且不会出现 UAC。因此,当您调试时您的应用程序默认具有权限。

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.

淡淡離愁欲言轉身 2024-08-10 14:08:18

尝试从 dev studio 运行 C++ 应用程序时遇到同样的问题。我在项目设置中将 UAC Bypass UI Protection 设置回 false,然后将 UAC 执行级别更改为 requireAdministrator,这似乎解决了我的问题。

Had the same problem with a C++ app trying to run from dev studeio. I set UAC Bypass UI Protection back to false in the project settings, then changed UAC Execution Level to requireAdministrator, and that seems to fix it for me.

樱花细雨 2024-08-10 14:08:18

我通过类似的设置但使用 VS2012 遇到了同样的问题。

我找到了这个“解决方案”,它对我没有帮助,但也许它会对您有所帮助

基本上您需要运行提升的调试器,并在应用程序启动后启动它:

http://social.msdn.microsoft.com/论坛/windowsdesktop/en-US/7a42efab-5ce8-456f-8a58-dfedbc2cefcb/debugging-with-uiaccesstrue?forum=windowsaccessibilityandautomation

I get this same issue with a similar set up but using VS2012.

I found this "solution", it doesn't help me, but maybe it will help you

Basically you need to run an elevated debugger, and start it once your app starts:

http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/7a42efab-5ce8-456f-8a58-dfedbc2cefcb/debugging-with-uiaccesstrue?forum=windowsaccessibilityandautomation

哽咽笑 2024-08-10 14:08:18

选择创建的exe文件并将该文件设置为可写,即不选中只读。

Choose the created exe file and make the file writable, i.e. unchecked read-only.

灯下孤影 2024-08-10 14:08:18

对于仍然遭受此错误困扰的任何人来说,Visual Studio 2013 似乎终于解决了此问题。 :)

It appears that Visual Studio 2013 has finally fixed this issue, for anyone still suffering from this bug. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文