GetProcess错误“无法连接到远程计算机"; [英] GetProcess Error "Couldn't connect to remote machine"

查看:528
本文介绍了GetProcess错误“无法连接到远程计算机";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,从远程PC获取处理器时遇到了一些问题,该代码适用于我的本地计算机,但是一旦我在远程PC的IP中添加一个异常,就会抛出无法连接到远程计算机"的异常.机器"

代码如下

hi all, having abit of a problem getting processors from a remote pc, the code works for my local machine but soon as I add in the remote PC''s IP an exception is thrown "Couldn''t connect to remote machine"

code is as follows

private void btnGetProcess_Click(object sender, EventArgs e)
        {
            Process[] processlist = Process.GetProcesses("machine ip");
            foreach (Process p in processlist)
            {
                listBox1.Items.Add(p.ProcessName);
            }
        }


帮助将不胜感激
非常感谢
wes


help would be appreciated
thanks alot
wes

推荐答案

无法连接到远程计算机"
错误指出您没有适当的访问权限来连接和访问其进程.您需要确保安全特权到位并且防火墙问题不存在.远程PC/服务器应允许远程连接.
"Couldn''t connect to remote machine"
Error states that you don''t have proper access permissions in place to connect and access it''s processes. You need to make sure security privileges are in place and firewall issues are not there. Remote PC/server should allow remote connections.


这篇关于GetProcess错误“无法连接到远程计算机";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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