Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to attach to the process

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.

like image 437
anand Avatar asked Oct 22 '10 10:10

anand


1 Answers

Maybe the program you are trying to debug is using admin privileges but visual studio doesn't have admin rights.

run visual studio as administrator, even if you are logged in as administrator it doesn't automatically have admin privileges.

you can do this quickly by right clicking on the short cut of Visual Studio and click Run as Administrator.

Or you can make it automatically run as admin by right clicking the shortcut and choosing properties. Choose Compatibility -> Privilege Level -> Run this program as administrator

like image 174
pm101 Avatar answered Oct 12 '22 23:10

pm101