问题
I am trying to implement background task with ControlChannelTrigger using WebSockets. In MSDN example I get an exception while running on Windows 10 Desktop in this place:
channel = new ControlChannelTrigger(channelId, serverKeepAliveInterval,ControlChannelTriggerResourceType)
Exception is "Access denied"
However in Windows 10 mobile this line passes and I get an exception Access Denied in the last line of the following block:
channel.UsingTransport(socket);
var uri = new Uri(url);
await socket.ConnectAsync(uri);
Is there any solution?
来源:https://stackoverflow.com/questions/32421747/controlchanneltrigger-in-uwp-windows-10-access-denied