Je reçois cette exception lors de l'appel PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); méthode. Il fonctionne correctement sur le périphérique, mais échoue sur la machine locale.Comment résoudre une exception: l'attente a expiré. (Exception de HRESULT: 0x80070102)
Ceci est mon code:
private async void CreateChannel_Click(object sender, RoutedEventArgs e)
{
var vProfile = NetworkInformation.GetInternetConnectionProfile();
System.Diagnostics.Debug.WriteLine("InterNetConnectivity==>>" + vProfile.GetNetworkConnectivityLevel().ToString());
UserResponseTBL.Text = vProfile.GetNetworkConnectivityLevel().ToString();
if (vProfile.GetNetworkConnectivityLevel() == NetworkConnectivityLevel.InternetAccess)
{
var vChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync();
string channelUri = vChannel.Uri;
UserResponseTBL.Text = channelUri;
System.Diagnostics.Debug.WriteLine("channelUri : " + channelUri);
}
}
Je reçois l'exception L'opération d'attente a expiré. (Exception de HRESULT: 0x80070102). Toute aide serait appriciée. Thanx