debugging a service

I

Ignacio Machin ( .NET/ C# MVP )

According to thishttp://msdn.microsoft.com/en-us/library/7a50syb3(VS.80).aspxi should be able to attach to the service
and debug.  What happens is i can see the service in the "attach to process" dialog but it is greyed out and i can't
select it.

This is VS2005.  I don't get it.

dan

r u sure it's the correct service?
Also make sure than in the "Attach to" option (above the process
list) you have "managed code".
also check the Type column in the process list, it should contains
"Managed"
 
J

Jeff Johnson

According to this
http://msdn.microsoft.com/en-us/library/7a50syb3(VS.80).aspx
i should be able to attach to the service and debug. What happens is i
can see
the service in the "attach to process" dialog but it is greyed out and i
can't select it.

This is VS2005. I don't get it.

Is this service on your local machine or are you doing remote debugging?
Silly question, but are you an admin on your machine?

I've debugged lots of services and I've never seen one greyed out before.
 
D

Dan Holmes

Ignacio said:
r u sure it's the correct service?
Also make sure than in the "Attach to" option (above the process
list) you have "managed code".
also check the Type column in the process list, it should contains
"Managed"
i feel like a dummy now. The greyed out one was the one that ended in vshost.exe. I never expanded the column wide
enough to see it.

When i clicked show processes from all users the right one showed and it is not grey.

thanks for causing me to look again.

dan
 
J

Jeff Johnson

i feel like a dummy now. The greyed out one was the one that ended in
vshost.exe.
I never expanded the column wide enough to see it.

When i clicked show processes from all users the right one showed and it
is not grey.

The very first thing I do when I create a new project is to uncheck that
check box in all configurations. I don't use .NET security, so I have no
need to debug it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top