When I use IMbnDeviceServicesContext.GetDeviceService() to get basic connect uuid has error, the error code is
"Unexpected exception occurred: System.Runtime.InteropServices.COMException (0x80070032)".
How can I solve this problem?
try
{
uint requestId = 0;
IMbnDeviceService deviceService;
//UUID_BASIC_CONNECT {A289CC33-BCBB-8B4F-B6B0-133EC2AAE6DF}
deviceService = m_MbnDeviceServicesContext.GetDeviceService("{A289CC33-BCBB-8B4F-B6B0-133EC2AAE6DF}");
// Open Commands Session
deviceService.OpenCommandSession(out requestId);
//deviceService.QuerySupportedCommands(out requestId);
rootPage.NotifyUser(deviceServicesOutputStr, NotifyType.StatusMessage);
}