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

S

Syam Sundar1

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

Continue reading...
 
Back
Top Bottom