[英]MoonAPNS The operation is not allowed on non-connected sockets
I am using Moonapns asp.net library to send push notifications to apple device. 我正在使用Moonapns asp.net库将推送通知发送到Apple设备。
it works fine on my local machine which is 64bit OS but when i am trying to deploy it to client's server with 64bit OS it gives following error , any one guide me what could be the problem? 它在我的本地计算机(64位操作系统)上运行良好,但是当我尝试将其部署到具有64位操作系统的客户端服务器时,出现以下错误,有人指导我可能是什么问题?
Event log: 事件日志:
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)
any help would be appreciated. 任何帮助,将不胜感激。
我想这是由于MoonAPNS使用的服务器对该端口的限制所致,我问网络管理员,他删除了该限制并起作用了,因此与我或编程无关,而与服务器无关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.