c# - RPC Server Is Unavailable error and Directory does not exist -
background
i have written utility watches files in directory, , copies them defined target locations on remote machines. there feature allows stopping defined services in order allow copying target.
in our work environment, these remote machines typically vms (we use vmware workstation) , machines part of vm sub-domain, , configured use nat networking (share host machine's ip address). when "remote" it's referring vm running on host.
problem
for utility, i'm trying copy files using unc path target directory, , using machine name list of services using servicecontroller.getservices(string machinename)
method.
so if had vm named server-1
, might trying copy file \\server-1\c$\destinationfolder
. of time works, see excetion because target directory can't found. when happens, see error when trying services on remote machine - "the rpc server unavailable."
when vm restarted, works fine... while.
i'm having hard time trying nail down issue, because it's sporadic , doesn't affect people. i'm wondering if it's ip issue, vmware changes ip , it's stale in host's cache? (if sound don't know i'm talking here, it's because don't... networking knowledge basic). when issues 'rpc server unavailable' error, see lot of answers regarding firewalls, don't believe case here. don't run mcafee internally , since works of time, doesn't seem cause.
actual questions
anyone have thoughts might cause problem? follow-up, if stale ip issue, how recreate issue debugging purposes, can try come way resolve going forward?
Comments
Post a Comment