When I test in my local pc push notification works fine. But if make it live by uploading to my cloud ,
I'm getting the error on :
_certificate = string.IsNullOrEmpty(p12FilePassword) ? new X509Certificate2(File.ReadAllBytes(p12File)) : new X509Certificate2(File.ReadAllBytes(p12File), p12FilePassword); _certificates = new X509CertificateCollection { _certificate };
Error :
A call to SSPI failed.System.ComponentModel.Win32Exception (0x80004005): The message received was unexpected or badly formatted.
_System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck)
at System.Net.Security.SslState.getSecureStream()
at System.Net.Security.SslStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback, Object asyncState)
at PushNotification.SendQueueToapple(IEnumerable1 queue) in PushNotification.cs:line 121
at PushNotification.SendToApple(List1 queue) in PushNotification.cs:line 92
at PushNotificationIOS.SendPushNotification() in PushNotificationIOS.cs:line 48
When I test in my local pc push notification works fine. But if make it live by uploading to my cloud , I'm getting the error on :
_certificate = string.IsNullOrEmpty(p12FilePassword) ? new X509Certificate2(File.ReadAllBytes(p12File)) : new X509Certificate2(File.ReadAllBytes(p12File), p12FilePassword); _certificates = new X509CertificateCollection { _certificate };
Error :
A call to SSPI failed.System.ComponentModel.Win32Exception (0x80004005): The message received was unexpected or badly formatted. _System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck) at System.Net.Security.SslState.getSecureStream() at System.Net.Security.SslStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback, Object asyncState) at PushNotification.SendQueueToapple(IEnumerable1 queue) in PushNotification.cs:line 121 at PushNotification.SendToApple(List1 queue) in PushNotification.cs:line 92 at PushNotificationIOS.SendPushNotification() in PushNotificationIOS.cs:line 48
Testing URL : http://www.createplaydate.com.asp1-21.ord1-1.websitetestlink.com/api/PushNotificationIOS/SendNotification
I'm using RackSpace cloud hosting.
anyone have any idea about it ? Thanks in advaced!