PushSharp ApplePushService提供频道exception
我能够成功地为ios设备发送和接收推送通知,但是现在我看到了这个错误:它似乎连接后但是达到最大尝试然后它再次尝试连接并出现此错误:我使用了在看到这些错误之前和之后相同的凭据,它成功发送通知,我将它们放在我的设备上。 它似乎尝试连接,然后它达到最大尝试,然后它尝试再次连接并给出此错误。 如果凭证工作一次不应该一直有效吗?
AMMethod:ServiceException; 通道exception:PushSharp.Apple.ApplePushService – > System.ComponentModel.Win32Exception(0x80004005):无法在System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule,String package,CredentialUse intent,SecureCredential scc)中识别提供给包的凭据。系统.Net.SecurityChannel.AcquireClientCredentials(Byte []&thumbPrint)在System.Net.Security.SecureChannel.GenerateToken(Byte []输入,Int32处的System.Net.Security.SecureChannel.AcquireCredentialsHandle(CredentialUse credUsage,SecureCredential&secureCredential) System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32处的System.Net.Security.SslState.StartSendBlob(字节[]传入,Int32计数,AsyncProtocolRequest asyncRequest)处的偏移量,Int32计数,字节[]和输出)在System.Net.Security.SslState.StartSendBlob(Byte [] incomin的System.Net.Security.SslState.StartReceiveBlob(Byte []缓冲区,AsyncProtocolRequest asyncRequest)处计数,AsyncProtocolRequest asyncRequest) System.Net.Security.SslState.StartReceiveBlob(Byte []缓冲区,AsyncProtocolRequest asyncRequest)处的System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32计数,AsyncProtocolRequest asyncRequest)中的g,Int32计数,AsyncProtocolRequest asyncRequest)在System.Net.Security的System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32计数,AsyncProtocolRequest asyncRequest)中的System.Net.Security.SslState.StartSendBlob(Byte [] incoming,Int32 count,AsyncProtocolRequest asyncRequest)。 System.Net.Security.SslState.ForceAuthentication(布局receiveFirst,Byte []中的System.Net.Security.SslState.StartSendBlob(Byte []传入,Int32计数,AsyncProtocolRequest asyncRequest)中的SslState.StartReceiveBlob(Byte []缓冲区,AsyncProtocolRequest asyncRequest) PushSharp.Apple.FeedbackService.Run上的System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)中的缓冲区,AsyncProtocolRequest asyncRequest(ApplePushChannelSettings设置,CancellationToken c ancelToken)在PushSharp.Apple.ApplePushService。 c_ DisplayClass4。 b _1(对象状态)
我通过重新生成证书解决了这个问题。 我将新的.cer安装到服务器上并将其导出到.p12中以与pushsharp代码一起使用。