what does the VideoOS.UI.manifest file mean

Hi everyone,

I am trying developing application to show live video from camera. I use imageViewercontrol to get image and show.

I met a exception COM when call function ImageViewerControl.Initialize(). I reference some sample use ImageViewerControl. I found file VideoOS.UI.manifest. If I exclude this file from project and build then run, I met exception in function Initialize(). then I add file VideoOS.UI.manifest to project again. I still met exception. I can’t run normal. Can I help me fix the problem and explain the reason?

Thank in advance

this is my code:

private void button1_Click(object sender, EventArgs e)

    {

        if (\_imageViewerControl1!=null)

{

\_imageViewerControl1.Disconnect();

\_imageViewerControl1.Close();

\_imageViewerControl1.Dispose();

\_imageViewerControl1 = null;

}

ItemPickerForm form = new ItemPickerForm();

form.KindFilter = Kind.Camera;

form.AutoAccept = true;

form.Init(Configuration.Instance.GetItems());

        if (form.ShowDialog() == DialogResult.OK)

        {

            \_selectItem1 = form.SelectedItem;

            \_imageViewerControl1 = ClientControl.Instance.GenerateImageViewerControl();

            \_imageViewerControl1.Dock = DockStyle.Fill;

            panel1.Controls.Clear();

            panel1.Controls.Add(\_imageViewerControl1);

            \_imageViewerControl1.CameraFQID = \_selectItem1.FQID;

            // Lets enable/disable the header based on the tick mark.  Could also disable LiveIndicator or CameraName.

            \_imageViewerControl1.EnableMousePtzEmbeddedHandler = true;

            \_imageViewerControl1.MaintainImageAspectRatio = true;

            \_imageViewerControl1.SetVideoQuality(0, 1);

            \_imageViewerControl1.EnableRecordedImageDisplayedEvent = true;

            **\_imageViewerControl1.Initialize(); // exception in Here**

            \_imageViewerControl1.Connect();

            \_imageViewerControl1.Selected = true;

        }

See this knowledge base article. (https://force.milestonesys.com/support/articles/en_US/Troubleshootings/Class-not-registered)

The manifest is used so that you can work without registering the dlls. I think we have heard reports before that in a development PC, debug environment, you might have to register, that sometimes the manifest will not work.

For more background information a recommended read is .NET Library Initialization in the MIP SDK Documentation.