C# 使用JdSoft.Apple.Apns.Notifications推送发送期间出现加密异常

C# 使用JdSoft.Apple.Apns.Notifications推送发送期间出现加密异常,c#,asp.net,push-notification,apple-push-notifications,C#,Asp.net,Push Notification,Apple Push Notifications,我已尝试从共享服务器发送推送。我正在使用JdSoft.Apple.Apns.Notifications.dll。我的项目在框架3.5中。这些是显示的错误。 " *发生内部错误。位于System.Security.Cryptographic.CryptographicException.ThrowCryptographicException(Int32 hr)在 System.Security.Cryptography.X509Certificates.X509Utils.\u LoadCertF

我已尝试从共享服务器发送推送。我正在使用JdSoft.Apple.Apns.Notifications.dll。我的项目在框架3.5中。这些是显示的错误。 "

*发生内部错误。位于System.Security.Cryptographic.CryptographicException.ThrowCryptographicException(Int32 hr)在 System.Security.Cryptography.X509Certificates.X509Utils.\u LoadCertFromBlob(字节[]) rawData、IntPtr密码、UInt32 dwFlags、布尔键集、, SafeCertContextHandle和pCertCtx)位于 System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(字节[]) rawData,对象密码,X509keystrageFlags keystrageFlags)位于 System.Security.Cryptography.X509Certificates.X509Certificate..ctor(字节[]) 数据)在 System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(字节[]) 原始数据)在 JdSoft.Apple.Apns.NotificationConnection.start(字符串 P12文件,字符串P12文件密码)位于 JdSoft.Apple.Apns.NotificationConnection..ctor(字符串 主机、Int32端口、字符串P12文件、字符串P12文件密码)位于 JdSoft.Apple.Apns.NotificationService.set_Connections(Int32 价值)在 JdSoft.Apple.Apns.NotificationService..ctor(布尔值 沙盒、字符串P12文件、字符串P12文件密码、Int32连接)*“


我刚刚在服务器上将应用程序池标识(在应用程序池的高级设置中)设置为LocalSystem时解决了同样的问题。

好吧,根据您遇到的错误,在没有看到您的代码的情况下,我假设问题出在您的p12文件或密码上。