“ClickOnce 不支持请求执行级别‘requireAdministrator’." [英] "ClickOnce does not support the request execution level 'requireAdministrator.'"

查看:30
本文介绍了“ClickOnce 不支持请求执行级别‘requireAdministrator’."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在编写一个需要访问注册表的应用程序.我没有涉及任何构建设置,希望在添加其他内容(例如描述或名称)之前让该内容正常工作.

出乎意料的是,我收到了一个不会消失的错误.ClickOnce 不支持请求执行级别requireAdministrator". 现在,我还没有在这个应用程序中接触过 ClickOnce.我所做的只是包含一个请求这些权限的清单文件.

我现在的问题是这个错误不会消失,我无法编译我的程序.关于该怎么做的任何建议?(旁注:我要睡觉了,所以我明天下午检查一下).

So I was writing an application that requires access to the registry. I had not touched any build settings, wanting to get the thing working before I added the other touches, such as a description or name.

Out of the blue, I get an error that will not go away. ClickOnce does not support the request execution level 'requireAdministrator'. Now, I hadn't touched ClickOnce in this application. All I had done was include a manifest file requesting these permissions.

My problem now is that this error will not go away, and I cannot compile my program. Any advice on what to do? (Side note: I am about to go to bed, so I will check this tomorrow afternoon).

推荐答案

这个评论也给出了很好的答案.

This comment gives a good answer, too.

无论您是否愿意,只要您单击发布",就会启用单击一次!如果您使用的是requireAdministrator",那么您似乎无法使用 ClickOnce,因此无法发布"您的项目.

Click once appears to get enabled whenever you click "Publish", whether you want it to or not! If you are using "requireAdministrator" then it appears that you cannot use ClickOnce, and therefore cannot "Publish" your project.

<小时>

原文:

事实证明,在安全"选项卡下,选中了启用 ClickOnce 安全设置".虽然我没查.无论如何,取消选中停止 ClickOnce 给我的错误.花了一段时间才找到...

Turns out that under the Security tab, "Enable ClickOnce security settings" was checked. Even though I didn't check it. Anyway, unchecking that stopped ClickOnce giving me errors. That took a while to find...

这篇关于“ClickOnce 不支持请求执行级别‘requireAdministrator’."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆