Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Error on Enabling device with TestApp.exe

$
0
0

I wrote the following Xml for the device, Sample Scanner:

<PointOfServiceConfig Version="1.0"> <ServiceObject Type="Scanner" Name="Example Scanner"> <HardwareId From="USB\Vid_05E0&amp;Pid_1200" To="USB\Vid_05E0&amp;Pid_1200" /> <HardwareId From="USB\Vid_05E0&amp;Pid_1200&amp;Rev_0201" To="USB\Vid_05E0&amp;Pid_1200&amp;Rev_0201" /> </ServiceObject> </PointOfServiceConfig>

I then tried to use the TestApp that comes with the POS for .NET SDK. When I try to enable the device, I get the following error:

POSControlException ErrorCode(Failure) ExtendedErrorCode(0) occurred: Unable to enable the device.  See inner exception for details.
System.ComponentModel.Win32Exception: A device attached to the system is not functioning
   at Microsoft.PointOfService.ExampleServiceObjects.HidReader.HidThread.StartReading()
   at Microsoft.PointOfService.ExampleServiceObjects.ExampleScanner.set_DeviceEnabled(Boolean value)
Opened device: Example Scanner
Created instance of device: Example Scanner

Can anyone help me out with this please?

Thanks.


The best things in life are free, but the most valuable ones are costly...use opportunities well for there are others like you who deserves them, but don't have them...


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>