2017 R3 plugin not running in 2016 R3 xprotect

VideoOS.Platform.ConfigurationItems.Camera tmpcamera = new VideoOS.Platform.ConfigurationItems.Camera(m_currentCamItem.FQID);

if (tmpcamera.RecordingEnabled == true)

{

  if (tmpcamera.ManualRecordingTimeoutEnabled)

    {

      \_RecordTimer.Interval = tmpcamera.ManualRecordingTimeoutMinutes \* 60000;

       \_RecordTimer.Enabled = true;

       \_RecordTimer.Start();                   

    }

}

when we run in xprotect, we get error dll could not be loaded

When in asking on plugin please tell which environment you are in, in this case I guess Smart Client. https://force.milestonesys.com/support/articles/en_US/Troubleshootings/XProtect-Smart-Client-cannot-load-your-MIP-plugin

Can we replace this automatically for management client and smart client through plugin setup

If you build an installer for your plugin you could add the functionality to the installer that it checks the VideoOS.Platform.dll and if it is older replaces it. The MIP SDK does not include functionality for this, neither is there a sample in the MIP SDK with this.