1

我正在使用 Moonapns asp.net 库向苹果设备发送推送通知。

它在我的 64 位操作系统的本地机器上运行良好,但是当我尝试将其部署到具有 64 位操作系统的客户端服务器时,它会出现以下错误,有人指导我可能是什么问题?

事件簿:

System.InvalidOperationException: The operation is not allowed on non-connected sockets.
   at System.Net.Sockets.TcpClient.GetStream()
   at MoonAPNS.PushNotification.OpenSslStream(String host, X509CertificateCollection certificates)
   at MoonAPNS.PushNotification.Connect(String host, Int32 port, X509CertificateCollection certificates)
   at MoonAPNS.PushNotification.SendQueueToapple(IEnumerable`1 queue)
   at MoonAPNS.PushNotification.SendToApple(List`1 queue)
   at NeoFaceWatchMobileClient.watchservice.Timer_Elapsed(Object sender, EventArgs e)

任何帮助,将不胜感激。

4

1 回答 1

1

我猜这是由于服务器对 MoonAPNS 正在使用的端口的限制,我询问了网络管理员,他取消了限制并且它起作用了,所以它与我或编程无关,但与服务器无关。

于 2013-02-26T13:02:05.613 回答