I have an executable written in C# running on Windows Server 2012 r2
If I start it, when I am working on the physical computer, it works just fine. But if I am logged into the computer through RDP it fails with the following error:

The program is supposed to listen for some events from a HID device.