Hi,
We get the error even though we have put the code in exception to catch
The call works in 2018 corporate R1,R2 but not in below 2018 xproduct products
try
{
VideoOS.Platform.ConfigurationItems.Camera tmpCam = new VideoOS.Platform.ConfigurationItems.Camera(item.FQID);
VideoOS.Platform.ConfigurationItems.StreamFolder streamFolder = tmpCam.StreamFolder;
foreach (var stream in streamFolder.Streams)
{
MessageBox.Show(stream.GetProperty("Name"));
foreach (var streamChild in stream.StreamChildItems)
{
MessageBox.Show("1 " + streamChild.ToString());
}
}
}
catch(Exception exp)
{
}
We get the below error even though we have put that in exception
Exception type: System.MissingMethodException
Exception message: Method not found: ‘System.Collections.Generic.ICollection`1<VideoOS.Platform.ConfigurationItems.StreamChildItem> VideoOS.Platform.ConfigurationItems.StreamDefinition.get_StreamChildItems()’.
Exception target site: btnAddCamera_Click