Windows Service Debug on VS2010
-
Hi everybody. I have migrated my software from VS2005 to VS2010, and when debugging my windows services, trying to attach to the process I get this error: "Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator." So, I run it as an administrator, I checked the permission on VSLauncher.exe and devenv.exe to make it run always as an admin, but I still get the error. I am an administrator already. Has anybody have this same problem? BTW, I'm using W7, VS2010.
-
Hi everybody. I have migrated my software from VS2005 to VS2010, and when debugging my windows services, trying to attach to the process I get this error: "Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator." So, I run it as an administrator, I checked the permission on VSLauncher.exe and devenv.exe to make it run always as an admin, but I still get the error. I am an administrator already. Has anybody have this same problem? BTW, I'm using W7, VS2010.
-
Did you try Opening the application as with Run as Administrator? And does the service also run in the same account ?
Sastry
Thanks for your answer Sastry. Yes, I tried selecting the box "Run as administrator" on the Visual Studio launcher, and also tried with right click -> Run as administrator. The top of the window says "Visual Studio 2010 (Administrator)" . And the service is running in my user. I don't know why is this still happening. Any other idea? First I thought that the problem was to try to debug the code on the network, but I also copied the solution to my C: and it still happens.
-
Hi everybody. I have migrated my software from VS2005 to VS2010, and when debugging my windows services, trying to attach to the process I get this error: "Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator." So, I run it as an administrator, I checked the permission on VSLauncher.exe and devenv.exe to make it run always as an admin, but I still get the error. I am an administrator already. Has anybody have this same problem? BTW, I'm using W7, VS2010.
It was a permissions problem. Win7 comes with a new security system, and I had to add to my profile (even being an admin) this permission: Control panel -> Administrative tools -> Local Security policy -> Local Policies -> User rights Assignment -> Debug programs -> Add user or group . And there, I added my own user. Reboot machine(Important!! Without rebooting, it won't work). After that, I was able to attach processes to debug them. It's been a really long time to solve this, I hope to help other people that find this same problem. Thanks everybody for your help.