'Kinect camera fails to open after installing my visual studio setup project
I have a project in Visual Studio that uses the Microsoft Azure Kinect Camera. My program runs perfectly fine when I debug it and I can install it just fine. However, when I try to run my application, there is an exception for the Kinect camera. All the DLLs seem to appear in the application's files after installation, so I have no idea what the issue could be. I know the camera is connected properly because it runs in debug mode. There are a few DLLs I had to add manually into the file system in the setup project, but I copied over the whole folder so I don't think there is anything I am missing. These DLLs I added pop up as just files and not assembly files like the other ones, but I tried adding them as assembly files and they still popped up as normal file types.
When looking at the Event Viewer, it gives this error:
Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: Microsoft.Azure.Kinect.Sensor.AzureKinectException at Microsoft.Azure.Kinect.Sensor.AzureKinectException.ThrowIfNotSuccess[Microsoft.Azure.Kinect.Sensor.NativeMethods+k4a_result_t, Microsoft.Azure.Kinect.Sensor, Version=1.4.1.0, Culture=neutral, PublicKeyToken=6f6471c4ba98fac7] at KinectRenderHelpers.PointCloud.ComputePointCloudCache(Microsoft.Azure.Kinect.Sensor.Calibration) at AzureKinectAdapter.InitializeKinect()
I have a folder within my project called OpenGL which includes these files https://github.com/microsoft/Azure-Kinect-Samples/tree/master/body-tracking-samples/csharp_3d_viewer
Another note I might add is that my program installs just on the C: drive. It does not install in Program Files. Not sure if this causes any issues, but I am not an administrator so it won't let me install my application there.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
