Im using Milestone SDK 2020 I have a service that connect to the management server and I’m using this method Configuration.Instance.GetItemsBySearch to find cameras by a criteria. when i lanuch the service for the first time the method works properly but lately if a want to invoke the same method im getting the following Exception (the service continue running):
Exception of type ‘VideoOS.ConfigurationAPI.ConfigurationFaultException.PathNotFoundException’ was thrown.
at VideoOS.Platform.ConfigurationItems.IConfigurationChildItem..ctor(FQID fqid)
Are you making a plugin? If yes, which environment? Smart Client, Management Client or Event Server?
Do you get the same exception if you use MIP SDK 2023R3?
Im making a WCF service for managing hardware (adding, deleting, activate o deactivate, rename hardware and groups). I did’t make the test in 2023R3 yet. I made test adding cameras with 2023 but after adding a camera if i want to obtain the same camera added before by folder camera is not updated so im having an exception hardware not found
When you use the MIP SDK (Configuration.Instance.GetItemsBySearch and other) the configuration is the one that was received at login, there is no mechanism in it to automatically refresh the configuration.
If you look at the ConfigUpdated sample it has a mechanism to ask for a new configuration. I believe it is VideoOS.Platform.SDK.Environment.ReloadConfiguration(serverfqid);
https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configupdated/readme.html&tree=tree_2.html