Hello, I have tried to export some recordings from server via Export Sample. I had an exception “Unable to connect to toolkit”. Meanwhile I can export the same video using Smart Client. What do I do to solve this and is it anyhow connected with version of SDK?
MIP SDK 2017R1
Corporate 2017R2
Smart Client 2017R2
I would recommend that you use the newest MIP SDK.. However this is not the cause for the issue you see. In general the MIP SDK will work for “future” versions. See - https://force.milestonesys.com/support/articles/en_US/FAQ/about-MIP-SDK-compatibility-with-XProtect-product-versions
My guess is that you are missing an initialization, perhaps you need these -
VideoOS.Platform.SDK.Environment.Initialize(); // General initialize. Always required
VideoOS.Platform.SDK.UI.Environment.Initialize(); // Initialize ActiveX references, e.g. usage of ImageViewerActiveX etc
VideoOS.Platform.SDK.Export.Environment.Initialize(); // Initialize export references
Together with the initializations it is important to copy the correct set of dependent files. Perhaps you need to use CopyExportFiles.bat file in the MIPSDK\Bin folder
Please see “.NET Library Initialization” in the MIP Documentation.
It is only a guess on my part, so if my answer does not fit or does not solve the issue, please elaborate on you observations with this.
Actually I figured out that all the issues were due to the difference in date on machines. It was 15-th on the server and 16-th on the other PC, changing the date fixed the problem. But still thank you for fast response. Maybe it will be of any help for someone else, I’ll mark it as answer.
Using the sample the initializations should be allright, so check the copy..