我正在使用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)任何帮助都将不胜感激。
发布于 2013-02-26 13:02:05
我想这是由于服务器对MoonAPNS使用的端口的限制,我问了网络管理员,他取消了限制,所以这与我或编程无关,而是与服务器有关。
https://stackoverflow.com/questions/12751042
复制相似问题