Groups | Blog | Home
all groups > visual studio .net debugging > may 2005 >

visual studio .net debugging : Debug of a windows service failed.


PK
5/9/2005 12:00:00 AM
Hi!

I am getting a strange error when i try to debug my "windows service"
written in VC 7.0. It says "Unable to attach to the process. Access is
denied.".
However I am able to debug my simple application.

The things that i tried was

I have added Administrators, Everyone and my current logged in user in
Administrative Tools -> Local Security Settings -> User rights
Assignment -> Debug programs ->

It did not work after the above settings. Is there something that I am
missing??? . Any inputs will be appreciated.

Regds,
PK

Oleg Starodumov
5/10/2005 12:00:00 AM

Is your account a member of Administrators and/or Debugger Users group?

What operating system you are using?

Is the service managed or unmanaged?

Regards,
Oleg
[VC++ MVP]



PK
5/11/2005 12:00:00 AM
Hi,
The user is in the Administrator group of that machine.
I am having a Win2K SP4 OS.
Service is unmanaged.
Everyone , current User and Administrator are added in the Debugger Users
group.

Still not working...

Regds,
PK

[quoted text, click to view]


I am getting a strange error when i try to debug my "windows service"
written in VC 7.0. It says "Unable to attach to the process. Access is
denied.".
However I am able to debug my simple application.

The things that i tried was

I have added Administrators, Everyone and my current logged in user in
Administrative Tools -> Local Security Settings -> User rights
Assignment -> Debug programs ->

It did not work after the above settings. Is there something that I am
missing??? . Any inputs will be appreciated.

Regds,
PK

Oleg Starodumov
5/12/2005 12:00:00 AM

[quoted text, click to view]

Are you debugging locally, or via a TS session?
(cross-session debugging is not allowed in Windows 2000)

What if you try to attach NTSD debugger to the service process?
ntsd -p <pid>
(ntsd.exe is in winnt\system32 directory)

Will NTSD be able to attach, and what messages will it display?

Oleg





gb
3/29/2006 11:11:28 AM
Hi, were you able to fix your problem? I am running into the same issue even
though i was able to debug the service before. I can attach to any other
AddThis Social Bookmark Button