アプリ間の Bluetooth 接続をプログラムで確立しようとしています。上記の目的については、次のコード スニペットを参照してください。
StreamSocket streamSocket = await PeerFinder.ConnectAsync(peerInformation);
そうしようとするたびに、このエラーが発生します。
An exception of type `System.Runtime.InteropServices.COMException` occurred
in mscorlib.ni.dll and wasn't handled before a managed/native boundary
HRESULT E_FAIL has been returned from a call to a COM component.
ERROR CODE: 2147500037
このエラーの回避方法についてアドバイスをお願いします。