NullReferenceException while tracking

I'm getting a NullReferenceException in my application.
I created a marker image using the demo and stored it on disk. Then I included the image (and the marker data) in my application as a resource. After that, I included the touchless-tracking in my application using the following code: