Error loading hosts on remote server


When using the BizTalkDocumentor to document hosts on a remote server, the same hosts must exist on the machine the documentor is running on or the call to Host.GetInstance (in Host.Load) will not find the host name (from the remote server) when iterating through the hosts on the local machine.
Subsequently, the line:
int hostType = Convert.ToInt32(wmiHost.Properties["HostType"].Value.ToString());
will throw a object reference not set exception as wmiHost is null, as the host was not found locally.
does this mean that use of wmiHost is likely to refer to the local host settings, not the remote host?


plykkegaard wrote Feb 28, 2010 at 1:22 PM

When setting up the path to the WMI objects you need to add servername to query the remote server instead of local server

In BizTalkOM.Host.GetManagementClass the path.Server property needs to be set by an additional parameter or a class property


plykkegaard wrote Feb 28, 2010 at 6:14 PM

hmm adding the servername in the method GetManagementClass requires that this is the server where BizTalk is installed
Server added in configuration is the database server if those two happens to be on different servers


wrote Feb 13, 2013 at 12:19 AM