无法附加到流程。尝试联系远程计算机时发生DCOM错误。访问被拒绝。 [英] Unable to attach to the process. A DCOM error occurred trying to contact the remote computer. Access is denied.

查看:293
本文介绍了无法附加到流程。尝试联系远程计算机时发生DCOM错误。访问被拒绝。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

---------------------------
$
Microsoft Visual Studio

---------------------------
$
无法附加到流程中。尝试联系远程计算机时发生DCOM错误。访问被拒绝。



通过将您的设置更改为仅调试本机代码或仅托管代码,可以避免此错误。

---------------------------
$
OK 帮助  

---------------------------

---------------------------
Microsoft Visual Studio
---------------------------
Unable to attach to the process. A DCOM error occurred trying to contact the remote computer. Access is denied.

It may be possible to avoid this error by changing your settings to debug only native code or only managed code.
---------------------------
OK   Help   
---------------------------

请不要问我google,因为我已经google了很长时间了,我找不到有价值的解决方案,然后我来了在这里,我想得到你的帮助。 

Please don't ask me to google as I have googled for a long time, and I can't find a valuable solution, then I come here and want to get help from you. 

我有2台机器,A是Win8.1,B是windwos 7.我两个都关闭了防火墙。 

I have 2 machines, A is Win8.1 and B is windwos 7. I have closed firewall for both. 

我在A中运行了一个名为myprogra1.exe的程序,并启动了远程调试器监视器。 

I ran a program named myprogra1.exe in A, and started remote debugger monitor. 

然后我在机器B中打开了VS2015,打开了"Attach to Process"。对话框,选择"远程(无认证)",输入机器A的IP地址和端口号4020,如192.168.0.10:4020。点击"刷新"后按钮,我
可以在对话框中看到myprogra1.exe进程。 

Then I opened VS2015 in machine B, opened "Attach to Process" dialog, select "Remote (no authentication)", input machine A's IP address and port number 4020 such as 192.168.0.10:4020. After I clicked the "refresh" button, I can see the process myprogra1.exe in the dialog. 

当我点击对话框中的myprogra1.exe和"Attach"按钮时,我得到了上面的错误。 

When I clicked the myprogra1.exe, and "Attach"button in dialog, I got the error above. 

我查看了Google发现的许多文档,例如 

I looked at many docs found by google such as 

https://msdn.microsoft.com/en -us / library / 2dbesfyx.aspx

https://msdn.microsoft.com/en-us/library/2dbesfyx.aspx

https://msdn.microsoft.com/en-us/library/0773txhx.aspx 

https://msdn.microsoft.com/en-us/library/0773txhx.aspx 

和其他人分享。但我仍然无法使我的环境有效。 

and others' sharing. but I still can't make my environment works. 

非常感谢您能给我帮助。 thx。 

It is much appreciated if you could give me help. thx. 

ps 

我的同事说他遇到了和我一样的问题。在他卸载所有Windows更新(超过10个)后,问题得到了解决。但是我的机器A中安装了50多个Windows更新。我认为这不是一个好的解决方案。并且
我不确定它是否可以工作,即使我已经安装了所有Windows更新。 

My colleague said he met the same issue as me. and after he uninstalled all windows updates(more than 10+), the problem was resolved. But there are more than 50+ windows updates installed in my machine A. I don't think it is a good solution. And I am not sure if it could work even if I unstalled all windows update. 

推荐答案

您在Machine  B上使用的用户帐户是否具有计算机A的调试权限?

Does the user account you use on Machine B have the debug privilege on Machine A?


这篇关于无法附加到流程。尝试联系远程计算机时发生DCOM错误。访问被拒绝。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆