Issues login into PQZ folder

I’m trying to open a folder that contains a PQZ file and a bunch of pic files using VideoOS.Platform.SDK.Environment.Login. This works on the previous version of our code using an older version of the SDK but now that I’ve updated the SDK to the latest version it wont login and is asking for a cache.xml file that doesn’t exist. Previously I’d created a uri using the PQZ file, then pass that in along with CredentialCache.DefaultNetworkCredentials into AddServer and then login using Login(uri). Now when I try to login I get this error

"Bank directory does not contain a config.xml file!

Source: VideoOS.DatabaseUtility.MediaStorage

HasInnerException = False"

I’ve tried using the sample projects, specifically VideoFileViewer, but that can’t open them either. I’ve also tried searching for references to PQZ files and found them in both MediaRGBEnhancementPlayback and MetadataPlaybackViewer but neither of these actually open the files.

The PQZ files are used in e-code XProtect, which is an older generation of XProtect which is now out of support.

You cannot use the newest MIP SDK as support for these older systems were removed, but you should be able use the older MIP SDK that is still available..

https://developer.milestonesys.com/s/article/newest-MIP-SDK-for-XProtect-Professional-VMS-E-code

Thanks for that. I tried the VideoFileViewer in the component samples for that SDK and can now open my PQZ files. The issue now is that other files I have, with the cache.xml file that worked with both the old and the new SDK are no longer opening. I’m getting the follow error

External component has thrown an exception.

at NmDatabase.Utility.CmBankInfo.IsEncrypted(CmBankInfo* )

at VideoOS.Platform.SDK.Config.DatabaseBank.get_IsEncrypted()

at VideoOS.Platform.SDK.Config.DBSystemInfo.Login()

at VideoOS.Platform.SDK.Platform.SDKConfiguration.VideoOS.Platform.SDK.Platform.ISDKConfiguration.Login(Uri uri, Boolean loadEnterpriseSlavesSeperately, Boolean loadSubSitesAfterwards)

at VideoOS.Platform.SDK.EnvironmentService.Login(Uri serverUri, Boolean masterOnly)

at VideoFileViewer.MainForm.buttonDB_Click(Object sender, EventArgs e) in [C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\VideoFileViewer\MainForm.cs:line 88

I’ve tried a few different files and it’s the same every time. Thanks

You will have to use the old SDK for the old files and you will have to use a newer SDK for the newer files. Be careful if you mix dll files from the new and the old SDK there will be an unpredictable behavior, always make sure that you clean out when switching from one version of the SDK to another.

If you need to use both old and new I suggest you make two projects and make sure there is no mix and only files from the version you are building with.

Ok I’ll have to do that then. Thanks for your help.