Unable to attach to the process

廉价感情. 提交于 2020-01-22 23:07:07

问题


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.


回答1:


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




回答2:


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).



来源:https://stackoverflow.com/questions/3996139/unable-to-attach-to-the-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!