This project is read-only.

FileNotFoundException

Jun 16, 2011 at 5:46 PM
Edited Jun 16, 2011 at 8:05 PM

Hi guys!

I read the previous discussions and my problem is kinda similar.

So, here's my error:

System.IO.FileNotFoundException was unhandled by user code
  Message=Could not load file or assembly 'NKinect, Version=1.0.4184.19137, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

About the NKinect project:

NKinect compilation is successful, but there're 96 warnings.

Then I compile the NKinectTest project, I get this error:

AnyCPU:

System.BadImageFormatException was unhandled
  Message=Could not load file or assembly 'NKinect, Version=1.0.4184.22244, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

x86:

		inline XnStatus SetSmoothing(XnFloat fSmoothingFactor)
		{
			return xnSetTrackingSmoothing(m_hNode, fSmoothingFactor);
		}

System.AccessViolationException was unhandled
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

 

x64:

System.BadImageFormatException was unhandled
  Message=Could not load file or assembly 'NKinect, Version=1.0.4184.22244, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

About my project:

Running OS: Windows 7 x64

IDE: Visual Studio 2010 Ultimate

Target framework: .NET Framework 4

Referenced dll: .\nkinect-8261\Debug\NKinect.dll (local copy: true)

I have installed OpenCV 2.2 and CLNUI v1121.

I tried a few things:

- Changed platform target for NKinect project and rebuild the class library

- I copied CLNUIDevice.dll into system32 (copied also into the projet)

- I changed the platform target of my project: x86/x64/Any CPU

 

Unfortunately, nothing works!

Any idea?