I'm using Azure push notifications SDK v1.0.8 and everytime my code calls that framework's logic it crashes and Windows shows a Pop-up error window which says w3wp process stopped. How can I solve that? The code executes well because the notification appears in the mobile device.
My code is something like this (a separate thread to avoid affecting current code execution flow):
private async void SendNotificationsAsync(MobileNotification notification)
{
await GetHub().SendTemplateNotificationAsync(notification.templatePorperties, notification.tag);
}
The error in VS2015 is: "System.NullReferenceException was unhandled Message: An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll Additional information: Object reference not set to an instance of an object."