Problem with POS for .NET SDK

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Talha

    #1

    Problem with POS for .NET SDK

    Hi there,
    i installed POS for .NET SDK on a KIOSK machine. The problem that im getting
    is it runs perfectly well with the simulator devices that are provided with
    the sdk but even the sample application when run on the machine fails and
    gives the following stack trace.

    -------------------------------------------------------------------------------
    System.Reflecti on.TargetInvoca tionException: Exception has been thrown by
    the target of an invocation. ---> System.Argument Exception: Version string
    portion was too short or too long.
    at System.Version. .ctor(String version)
    at Microsoft.Point OfService.Manag ement.Explorer. ScanForLegacyOb jects()
    at Microsoft.Point OfService.Manag ement.Explorer. Refresh()
    at Microsoft.Point OfService.Manag ement.Explorer. .ctor()
    --- End of inner exception stack trace ---
    at System.RuntimeT ype.CreateInsta nceImpl(Boolean publicOnly)
    at System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
    at System.RuntimeT ype.CreateInsta nceImpl(Binding Flags bindingAttr, Binder
    binder, Object[] args, CultureInfo culture, Object[] activationAttri butes)
    at System.Activato r.CreateInstanc e(Type type, BindingFlags bindingAttr,
    Binder binder, Object[] args, CultureInfo culture, Object[]
    activationAttri butes)
    at System.Reflecti on.Assembly.Cre ateInstance(Str ing typeName, Boolean
    ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
    CultureInfo culture, Object[] activationAttri butes)
    at Microsoft.Point OfService.PosEx plorer.LoadExpl orer()
    at Microsoft.Point OfService.PosEx plorer.Initiali ze(ISynchronize Invoke
    synchronizingOb ject)
    at Microsoft.Point OfService.PosEx plorer..ctor(IS ynchronizeInvok e
    synchronizingOb ject)
    at TestCCONet.frmM ain..ctor() in d:\backup\mypro jects\pos
    sdk\sdk\files\s dk\samples\samp le application\sou rce\frmmain.cs: line 250
    System.Argument Exception: Version string portion was too short or too long.
    at System.Version. .ctor(String version)
    at Microsoft.Point OfService.Manag ement.Explorer. ScanForLegacyOb jects()
    at Microsoft.Point OfService.Manag ement.Explorer. Refresh()
    at Microsoft.Point OfService.Manag ement.Explorer. .ctor()
    ----------------------------------------------------------------------

    The exception arises when the object of PosExplorer class is initialised
    posExplorer = new PosExplorer(thi s);

    All the devices are working absolutely fine with the diagnostic utils that
    are provided.

    Any help or advice where to start from would be highly appreciated
    Thanks


Working...