RobotStudio event

Camera Properties Example

Hi

I have been trying to get the Camera Properties Example running.
I followed the APIDocumentation.

But I for some reason keeps getting an unknown error, I found out that it is the following line
station.Cameras.Add(myCam);

I have done nothing but putting the code into the VisualStudio project, compile and copy.

Then start the RobotStudio, when creating a new station the error occurs.

I have tried other examples and some of them work.

Is there something that I am missing, maybe something more I need to do?