USBClientController.StandardDevices.StartKeyboard()

Hi
I just wanted to start the USBClientController as a keyboard with the following line:

[b]USBC_Keyboard keyboard;

void ProgramStarted()
{
keyboard = USBClientController.StandardDevices.StartKeyboard();
}[/b]

I get this exception,

An exception of type ‘System.InvalidOperationException’ occurred in GHI.Premium.USBClient.dll.

but I have no Idea how to solve it.

I use:
FEZ Spider 1.0 with .NET Micro Framework V4.2
USB Client DP 1.3
USB Host 1.1 and a standard keyboard is connected to it.

@ andre.m - Hello
Sry that I was inactive for a month now.

I wanted to simulate a keyboard to the pc. I didn’t want to connect a keyboard to the Spider.

@ Meta - https://www.ghielectronics.com/docs/20/usb-client walks you through getting started with USB client in 4.3.

@ John - using Microsoft.SPOT.Hardware.UsbClient;

I can’t add this as a reference so I can’t just copy paste the example code.
Where do I get this assembly from?

@ Meta - I believe it is in Microsoft.SPOT.Hardware.Usb.

@ John - Ok. it worked with these

using GHI.Usb.Client;
using GHI.Usb;

I was able to get it working once with the method I posted in the first post but it never worked again. I had some more problems but I will only remember them when they occur again.

Thx John