5

I'm running VS2K8 in Win7 64-bit. I'm logged in as admin and I'm running it as admin, but the program I'm working on fails with access denied when I call a restricted API. If run the program from Explorer with "Run as Administrator" it works.

I was under the belief that VS2K8 debugs programs with whatever rights VS2K8 itself is running with. As it stands I can't debug my application due to this and I'm at a loss as to what's going on.

ChrisF
  • 41,540
brian
  • 51

2 Answers2

3

Although you are logged on as admin, any program you run in Win7 has reduced permissions. Therefore, even an admin needs to use "Run as Administrator" to run with full permissions.

Use Visual Studio with "Run as Administrator" to find out if that's what's going on.

harrymc
  • 498,455
0

Run Visual Studio as "Run as administrator" and in the manifest file set the value of requestedExecution level as requireAdministrator.

bluish
  • 495
Dhanya
  • 1