我曾尝试从共享服务器发送推送。我正在使用JdSoft.Apple.Apns.Notifications.dll。我的项目是在框架3.5中。这些是显示的错误。 “
*发生内部错误。在System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32) hr)at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(字节[] rawData,IntPtr密码,UInt32 dwFlags,布尔persistKeySet, SafeCertContextHandle&安培; pCertCtx)at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(字节[] rawData,Object password,X509KeyStorageFlags keyStorageFlags)at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(字节[] 数据) System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(字节[] rawData)at JdSoft.Apple.Apns.Notifications.NotificationConnection.start(字符串 p12File,String p12FilePassword)at JdSoft.Apple.Apns.Notifications.NotificationConnection..ctor(字符串 host,Int32 port,String p12File,String p12FilePassword)at JdSoft.Apple.Apns.Notifications.NotificationService.set_Connections(的Int32 价值) JdSoft.Apple.Apns.Notifications.NotificationService..ctor(布尔 sandbox,String p12File,String p12FilePassword,Int32 connections)*“
答案 0 :(得分:0)
我刚刚在我的服务器上修复了同样的问题,将应用程序池标识(在应用程序池的高级设置中)设置为LocalSystem。