1

My program is not asking for administrator privileges while I do have a manifest file included in my project, I loaded it correctly, it just simply doesnt want to fix the error I have in my code. I'll post the manifest file, but I'm almost sure its fine:

<?xml version="1.0" encoding="utf-8"?>

  <!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
  <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->

</application>

</dependentAssembly> </dependency>-->

These are the settings I am using in my project:

Settings

The error I am getting:

Error

Translated it says: "Win32 Exception was unhandled, Not all privileges or groups referenced are assigned to the caller."

Can I have any help, so I can make my program ask for administrator privileges so it can run correctly?

Stan
  • 3,659
  • 14
  • 35
  • 42

1 Answers1

1

You'll need to modify <requestedExecutionLevel>

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

See here: How do I force my .NET application to run as administrator?

Community
  • 1
  • 1
Eric Dahlvang
  • 8,252
  • 4
  • 29
  • 50