Jump to content

Asking for Administrator permission in a WPF application despite setting requestedExecutionLevel to "requireAdministrator" in .NET 5


Recommended Posts

Guest Syam Sundar1
Posted

0I developed a WPF application using .NET 5 and I must run it with administrator privileges. I have created a setup project and added the primary output of my WPF application to it.To accomplish this, I have made sure to set the requestedExecutionLevel attribute to "requireAdministrator" within the application manifest file (app.manifest).However, I have encountered an issue where the application does not initiate with elevated privileges as intended. Instead, it prompts the user for Administrator permission when launched.I would greatly appreciate any insights, guidance, or solutions to help

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...