Exception: RPC server is unvailable.

G

Guest

hi,

this time, i hit a more specific issue. when i execute the following code, i
run into a exception says "RPC server is unvailable!":

string path = "\\\\MSRA-IDS-RV3\\root\\cimv2:Win32_Service";
ManagementClass cls = new ManagementClass(path);
ManagementObjectCollection c = cls.GetInstances();

i'm sure that all RPC-related services are runing in my machine and remote
machine. i can't figure it out. Could anyone help me? thanks.
 
G

Guest

since it works well when retreiving on local machine, do i need to create a
connection to remote machine first?
 
G

Guest

oh, i resolved it myself :)
thanks

CAIBird said:
since it works well when retreiving on local machine, do i need to create a
connection to remote machine first?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top