views:

22

answers:

1

I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username.

I have opened VS as administrator.

The error I am getting is:

Unable to attach the process. The system cannot find the file specified

I am running on Windows Vista.

A: 

Try to check Local Security Policy, make sure that Administrators(or your user) have "Debug Programs" permission (from Security Settings -> Local Policies -> User Rights Assignment).

andrei m
I opened Debug Program Properties under User Right Assignment .Its not editable and giving message " This setting is not compatible with computers running Windows 2000 Service Pack 1 or earlier. Apply group policy objects containing this setting only to computers running a later version of the operating system"
Alien01
It's strange that Windows Vista gives you that message. Are you logged in with an administrator account when you try to make those changes?
andrei m
Yes I am logged in with administrator account..
Alien01
What if you try to run the service under your account. The rights I have mentioned before are only required if you try to attach a debugger to any process or to the kernel.
andrei m
If you think that is not related to the account that you are using, please check also http://stackoverflow.com/questions/2026853/unable-to-attach-to-created-process-with-visual-studio-2005 and see if it helps.
andrei m