“ClickOnce does not support the request execution level 'requireAdministrator.'”

前端 未结 11 1620
暗喜
暗喜 2020-12-07 15:33

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

11条回答
  •  伪装坚强ぢ
    2020-12-07 15:48

    Edit: This comment gives a good answer, too.

    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.


    Original:

    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...

提交回复
热议问题