1
Vote

Error loading hosts on remote server

description

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?

comments

plykkegaard wrote Feb 28, 2010 at 2: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
http://msdn.microsoft.com/en-us/library/system.management.managementpath.aspx

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

rgds/Peter

plykkegaard wrote Feb 28, 2010 at 7: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

rgds

wrote Feb 13, 2013 at 1:19 AM