Method not found

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

This is a known issue. When the Smart Client VideoOS.Platform.dll is older than the VideoOS.Platform.dll in the MIP SDK you used when developing the plugin this can happen.

I recommend an upgrade of the Smart Client.

The alternative is to replace the VideoOS.Platform.dll - see - https://developer.milestonesys.com/s/article/XProtect-Smart-Client-cannot-load-your-MIP-plugin