Unable to access HardwareDriverSettingsFolder

I am trying to access device ProductID from “hardware/ProductID” using HardwareDriverSettingsFolder but getting folowwing error:

2026-03-11 08:46:30.644-07:00 [ 1] DEBUG - Error: ConfigurationApiItemWrapper ():ConfigAPI GetItem(): VideoOS.Platform.PathNotFoundMIPException, /hardware/1c38435e-ad36-465c-be39-3c7dd152fece

this is how i am doing:

var camera = new VideoOS.Platform.ConfigurationItems.Camera(cameraFqid);
var hardware = new Hardware(camera.ServerId, camera.ParentItemPath);
var driverSettings = hardware.HardwareDriverSettingsFolder.HardwareDriverSettings.FirstOrDefault();

Look at my code, it sure helps you :slight_smile:

Your code works for me in testing.
When debugging, try single-stepping: Where do you get the error, in which of the listed lines? If you look at the camera or hardware object (if not in error), is there anything special?
Does it work for other cameras where one camera fails, or does it fail for any camera you test?
What version is the XProtect VMS? What version is the MIP SDK you are using (NuGet)?

the line that gives error is var driverSettings = hardware.HardwareDriverSettingsFolder.HardwareDriverSettings.FirstOrDefault();

Doesnot work for any camera ,devices are in connected state no errors. VMS is 2025R2.

I have multiple recording servers and 100 of devices for each recording server and theoretically hardware/ folder should be accessible from recording Server where i have onboarded the cameras , in this case EnvironmentManager.Instance.MasterSite or camera.ServerId correct?

Your MIP SDK is 24.1.1, please try to use the latest. (Which is 25.3.2) Find it here.