Type initializer for 'Microsoft.Kinect.KinectSensor' threw an exception

Nov 6, 2012 at 5:10 AM

I keep getting same exception whenever I attempt to run the Samples or WPFSamples:

Type initializer for 'Microsoft.Kinect.KinectSensor' threw an exception

I am unsure what to do. Any ideas?

Coordinator
Nov 6, 2012 at 6:11 AM

Maybe it's a problem with the newest version I've uploaded. Can you try an older release?

I'll look into it later today and let you know.
- Stefan
Nov 6, 2012 at 6:24 AM

I've just tried using several of the older versions - as far back as 16705 - and I'm still getting the same exception.

Thanks for your help.

- Marc

Coordinator
Nov 6, 2012 at 6:13 PM
Edited Nov 6, 2012 at 7:40 PM

Do you work on a 32 bit system? All releases are compiled for 64 bit.

Nov 6, 2012 at 7:39 PM


No, it's a 64-but system.
Sent from Samsung Mobile

Candescent <notifications@codeplex.com> wrote:

From: Candescent

Do you work on a 32 bit systems? All releases are compiled for 64 bit.

Coordinator
Nov 6, 2012 at 7:58 PM

You've installed Kinect SDK 1.6?

What versions of the .NET framework are installed? The binaries are compiled for .NET Framework 4.

Nov 6, 2012 at 8:20 PM
I have framework 3 to 4.5. I'll double check that is set to 4. And I'm using the SDK version included in your package. So version 1.6 on the newest update.


Sent from Samsung Mobile

Candescent <notifications@codeplex.com> wrote:

From: Candescent

You've installed Kinect SDK 1.6?

What versions of the .NET framework are installed? The binaries are compiled for .NET Framework 4.

Nov 6, 2012 at 8:28 PM

I just double checked and .MET framework 4 is in use.

Sent from Samsung Mobile

Candescent <notifications@codeplex.com> wrote:

From: Candescent

You've installed Kinect SDK 1.6?

What versions of the .NET framework are installed? The binaries are compiled for .NET Framework 4.

Coordinator
Nov 6, 2012 at 9:01 PM

Did you install the Kinect SDK 1.6 or did you just download this package? It only contains the .dll but no drivers, you have to install Kinect SDK 1.6 first.

Do the samples that come with the SDK run?

Can you compile it yourself and run it in debug mode to see if there's an inner exception with more details?

Coordinator
Nov 7, 2012 at 5:51 PM

Could it be that you've installed the 32-bit version of the Kinect SDK on your 64-bit system?

Nov 7, 2012 at 6:15 PM
I checked this morning and it seems I have version 1.0 of the SDK installed. I'll see what happens when I change it.
Sent from Samsung Mobile

Candescent <notifications@codeplex.com> wrote:

From: Candescent

Could it be that you've installed the 32-bit version of the Kinect SDK on your 64-bit system?

May 6, 2013 at 4:58 PM
Edited May 6, 2013 at 5:01 PM
I'm having the same problem in Windows 7 64 bits with the lastest version of Kinect SDK and .net 4.0
Do you have any solution for this problem?

This is the full log of .toString() from TypeInicializationException

"System.TypeInitializationException: The type initializer for 'Microsoft.Kinect.KinectSensor' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named '#1' in DLL 'Kinect10.dll'.
at Microsoft.Kinect.NativeMethods.NuiDebugGetFailureStack()
at Microsoft.Kinect.KinectSensor..cctor()"

Thank you!
Coordinator
May 6, 2013 at 8:04 PM
Hi philippe

The binary is compiled with Kinect SDK 1.6, if you're using 1.7, that might be the cause. You can download the source and replace the reference to the Kinect DLL.

I don't know yet when I'll have time to update the binary version here.

Stefan
May 7, 2013 at 3:15 AM
Thank you for the quick reply!

Can you please tell me the path to this dll?
Coordinator
May 7, 2013 at 7:13 PM
You have to replace Lib\KinectSDK\Microsoft.Kinect.dll with the version you've installed.
May 13, 2013 at 11:25 PM
Thank you! Now everything is working fine!