2

我尝试从服务器发送通知消息,

当我尝试使用 php 时,它工作正常,但在 .Net 中它不工作。我正在使用MoonAPNS

我没有使用 https 服务器,只是在 localhost 中运行。

我收到错误

对 SSPI 的调用失败,请参阅内部异常。

An unknown error occurred while processing the certificate

   at System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck)
   at System.Net.Security.SslState.get_SecureStream()
   at System.Net.Security.SslStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback asyncCallback, Object asyncState)
   at MoonAPNS.PushNotification.SendQueueToapple(IEnumerable`1 queue) in D:\Sample\PushNotification to iPhone\Moon-APNS-master\Moon-APNS-master\Application\MoonApns\PushNotification.cs:line 128
   at MoonAPNS.PushNotification.SendToApple(List`1 queue) in D:\Sample\PushNotification to iPhone\Moon-APNS-master\Moon-APNS-master\Application\MoonApns\PushNotification.cs:line 99
   at PushNotify._Default.Page_Load(Object sender, EventArgs e) in D:\Sample\PushNotification to iPhone\Moon-APNS-master\Moon-APNS-master\PushNotify\Default.aspx.cs:line 19
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

任何人都可以为此提供帮助。任何其他方式都可以使用.Net发送通知

4

0 回答 0