2

我正在尝试以编程方式建立应用到应用的蓝牙连接。出于上述目的,请参阅以下代码片段:

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

请告知如何解决此错误。

4

0 回答 0