Hi Erel, In the IDE and when using the optomized compiler with the Hardware.dll library for the device, on the desktop I get this error: Error compiling program. Error message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. OK Will renaming HardwareDesktop.dll to Hardware.dll and compiling with the optimized compiler and then replacing the desktop version of Hardware.dll with the version for the device link it correctly? When using the legacy way of compiling, the hardware.dll for the device has no problems. Thanks.