An Unknown Error Occurred While Processing The Certificate Apns
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn sys.webforms.pagerequestmanagerservererrorexception an unknown error occurred while processing more about Stack Overflow the company Business Learn more about hiring developers or an unknown error occurred while processing the request on the server posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community a call to sspi failed see inner exception push notification Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up A call to sspi failed while connecting to APN feedback a call to sspi failed see inner exception c# service up vote 0 down vote favorite 1 I am trying to query Apple's feedback service in C# to get the device lists. But it throws: Unknown exception: System.ComponentModel.Win32Exception (0x80004005): An unknown error occurred while processing the certificate. The error messgage says: A call to SSPI failed, see inner exception. Following is the code snippet I have implemented for communication with the feedback service. This is similar to
Apple Developer
PushSharp API: X509Certificate2 certName = new X509Certificate2(File.ReadAllBytes("CertificateFile.p12")); X509Certificate2Collection certs = new X509Certificate2Collection(certName); string hostName = "feedback.sandbox.push.apple.com"; TcpClient tcpClientF = new TcpClient(hostName, 2196) SslStream sslStreamF = new SslStream( tcpClientF.GetStream(), true, (sender, cert, chain, sslErrs) => { return true; }, (sender, targetHost, localCerts, remoteCert, acceptableIssuers) => { return certName; }); sslStreamF.AuthenticateAsClient(hostName, certs, SslProtocols.Tls, false); I have searched multiple threads here but nothing seems to solve my problem. I have verified the certificate file and it is valid. c# apple-push-notifications pushsharp share|improve this question edited Jul 14 '14 at 13:46 Yuriy 2,78661324 asked Jul 14 '14 at 13:26 HSharma 407 What does the inner exception say? –antiduh Jul 14 '14 at 14:46 The inner exception is what I have already mentioned: Unknown exception: System.ComponentModel.Win32Exception (0x80004005): An unknown error occurred while processing the certificate. –HSharma Jul 15 '14 at 4:39 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email d
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up push notification iphone error (moon aspn) up vote 1 down vote favorite 1 I'm using the moon aspn library for sending push notifications http://stackoverflow.com/questions/24737590/a-call-to-sspi-failed-while-connecting-to-apn-feedback-service in asp.net and c#. I'm encountering the following error: Call to SSPI Failed; in the inner exception i have: Unknown error while processing the certificate; error code: -2147467259. here is my code: private void SendQueueToapple(IEnumerable