locked
Microsoft Band SDK use with Windows Runtime Component RRS feed

  • Question


  • Is it possible to use the Microsoft Band SDK from within a Windows Runtime Component? GetBandsAsync works, but it fails when connecting:

    IBandClient bandClient = await BandClientManager.Instance.ConnectAsync(pairedBands[0])

    System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       at Microsoft.Band.MarshalUtils.GetBytes[T](T& structure, Byte[] resultArray, Int32 offset)
       at Microsoft.Band.BandClient.CheckFirmwareSdkBit(FirmwareSdkCheckPlatform platform, Byte reserved)
       at Microsoft.Band.BandClientManager.<ConnectAsync>d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    Friday, May 22, 2015 9:27 AM

Answers

  • The Microsoft Band dev team is watching the microsoft-band tag on Stackoverflow.com
    • Proposed as answer by Just Karl Friday, May 22, 2015 7:43 PM
    • Marked as answer by Just Karl Friday, May 29, 2015 3:57 PM
    Friday, May 22, 2015 12:36 PM