-1

I want to publish my C# app, but I got the error "ClickOnce does not support the request execution level 'requireAdministrator.'”.

Then I tried to uncheck "Enable ClickOnce security settings" like this answer.

but when I click "Publish" the "Enable Clickonce Security Settings" re-enables, like this un answerd question

Therefore I can't cancel the error "ClickOnce does not support the request execution level 'requireAdministrator.'”

Flufy
  • 309
  • 2
  • 15
  • Possible duplicate of ["ClickOnce does not support the request execution level 'requireAdministrator.'"](https://stackoverflow.com/questions/11023998/clickonce-does-not-support-the-request-execution-level-requireadministrator) – gravity Aug 08 '18 at 18:33
  • The answer, by Brian (and duplicated below) in that original question was the same thing you could have tried here. (See `asInvoker` notation) – gravity Aug 08 '18 at 18:39

2 Answers2

0

You have an 'app.manifest' that sets this. Open it make sure it contains:

      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
            <requestedExecutionLevel level="asInvoker" uiAccess="false" />
      </requestedPrivileges>
Poul Bak
  • 10,450
  • 5
  • 32
  • 57
0

Go to the application properties (right-click on the solution file and click the properties), then go the security tab.
Then disable the click-once security setting check box.
That will work.

סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68