RPC服务器不可用? [英] The RPC server is unavailable?

查看:135
本文介绍了RPC服务器不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RPC服务器不可用. (来自HRESULT的异常:0x800706BA)我在获取硬件信息时遇到此错误

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) this error i am getting while fetching the hardware information

ConnectionOptions co = new ConnectionOptions();
ManagementScope ms = new ManagementScope("\\\\192.168.1.5\\root\\cimv2", co);
ms.Connect();
ObjectQuery ob = new ObjectQuery("select * from Win32_Processor");
ManagementObjectSearcher searcher4 = new ManagementObjectSearcher(ms,ob);
foreach (ManagementObject objmgmt3 in searcher4.Get())
{
    Response.Write("Processor:" + objmgmt3.GetPropertyValue("Name"));
}


这是我试图在远程系统中获取硬件信息的代码..

有人可以帮我吗....


This is the code that i am trying to fetch hardware information in the remote system.......

Can someone Help Me pls....

推荐答案

发生此问题是由于计算机名称和RPC服务期望的名称不匹配.
This problem occurs because of a mismatch in the computer name and the name that the RPC service expects.

Google gave me more details...[^]

The error is usually caused because the server can''t be located. Make sure you can ping the server machine using the string you typed into the ComputerName property of the TRemoteServer.


这篇关于RPC服务器不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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