加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-4 – Azure上的PushSharp ASP.net MVC4问题. – 无

发布时间:2020-12-16 06:23:40 所属栏目:asp.Net 来源:网络整理
导读:我有一个ASP.Net MVC4网站,在Azure上运行一个简单的Web服务,为我们的移动应用程序提供推送通知服务.它在我的机器上的本地IIS实例上运行时有效,但是一旦部署到Azure,它就会工作一段时间然后停止.在PushSharp无法连接到Apple的反馈服务后,它似乎可能会停止.最
我有一个ASP.Net MVC4网站,在Azure上运行一个简单的Web服务,为我们的移动应用程序提供推送通知服务.它在我的机器上的本地IIS实例上运行时有效,但是一旦部署到Azure,它就会工作一段时间然后停止.在PushSharp无法连接到Apple的反馈服务后,它似乎可能会停止.最初我得到第一个堆栈跟踪,然后每隔十分钟得到第二个跟踪.证书可以很好地连接到APNS本身,实际上我收到了通过Azure Web服务发送的测试推送通知.我正在从文件中加载证书,如PushSharp的示例所示.我是否需要其他证书才能获得反馈服务?
有没有其他人有类似的设置工作?

第一个堆栈跟踪

System.ComponentModel.Win32Exception (0x80004005): The credentials supplied to the package were not recognized
   at System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule,String package,CredentialUse intent,SecureCredential scc)
   at System.Net.Security.SecureChannel.AcquireCredentialsHandle(CredentialUse credUsage,SecureCredential& secureCredential)
   at System.Net.Security.SecureChannel.AcquireClientCredentials(Byte[]& thumbPrint)
   at System.Net.Security.SecureChannel.GenerateToken(Byte[] input,Int32 offset,Int32 count,Byte[]& output)
   at System.Net.Security.SecureChannel.NextMessage(Byte[] incoming,Int32 count)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer,Int32 readBytes,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst,Byte[] buffer,AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost,X509CertificateCollection clientCertificates,SslProtocols enabledSslProtocols,Boolean checkCertificateRevocation)
   at PushSharp.Apple.FeedbackService.Run(ApplePushChannelSettings settings,CancellationToken cancelToken)
   at PushSharp.Apple.ApplePushService.<ApplePushService>c__AnonStorey3.<>m__8(Object state)    at System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule,CancellationToken cancelToken)
   at PushSharp.Apple.ApplePushService.<ApplePushService>c__AnonStorey3.<>m__8(Object state)

第二堆栈跟踪

2013-06-11 03:51:18.6942 FATAL Push service Exception on VisionsLiveMobileBulletinBoard Development channel
System.Net.Sockets.SocketException (0x80004005): An attempt was made to access a socket in a way forbidden by its access permissions 17.172.233.66:2196
   at System.Net.Sockets.TcpClient..ctor(String hostname,Int32 port)
   at PushSharp.Apple.FeedbackService.Run(ApplePushChannelSettings settings,CancellationToken cancelToken)
   at PushSharp.Apple.ApplePushService.<ApplePushService>c__AnonStorey3.<>m__8(Object state)    at System.Net.Sockets.TcpClient..ctor(String hostname,CancellationToken cancelToken)
   at PushSharp.Apple.ApplePushService.<ApplePushService>c__AnonStorey3.<>m__8(Object state)
2

解决方法

这似乎是相关的.
https://github.com/Redth/PushSharp/issues/49

Azure WebSite的免费或共享模式将导致此问题.

扩展到保留模式(如果你可以得到一个),问题就会消失.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读