How to get Camera Items without using ItemPickerForm? Its for a non UI based application.

I was refering Export sample and wanted to create something similar without any forms getting displayed.

In the CameraStreamResolution sample there is code that pick a camera. This might be exactly what you need.

Thanks.This was the code I was looking for. But I was running it and after logging in , Im getting ServerFaultMIPException, {“The HTTP service located at http://arsse-dt-60.arsse:22331/MapService/GisItemService/Message is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later.”}

Any Idea what I am missing here?

Do you get this with the sample unmodified?

Version? (What product and version is the XProtect and the MIP SDK?)

Does this happen when doing Login? What is the last command?

I am using Xprotect Essential+ 2018 and MIP SDK 2018 R1. I am able to login successfully and it happens at

static private void CheckChildren(Item parent)

{

  List<Item> itemsOnNextLevel = parent.GetChildren(); --> error

while getting the children for getting camera item.

I have been able to reproduce. The issue is on Essential+ 2018R1 always, but also on other XProtect 2018R1 products if the Event Server is unavailable at the time.

Quick workaround that actually improves the effectiveness of the sample and would be an improvement even if not necessary as a workaround for this issue:

Modify Program.cs line 186 to

List list = Configuration.Instance.GetItemsByKind(Kind.Camera);

(Was List list = Configuration.Instance.GetItems(); )

I will report this to Milestone Development, there is a bug causing the exception, for you I hope you will use the improved code I suggest..

That works. Thanks a lot.