Bonjour,

Je suis en train de faire un web service (WCF) qui devrait permettre l'envoi de push notification vers les iPhones.

J'arrive à faire les tests en local. Mais une fois le web-service publié sur le serveur, j'ai une erreur lors de l'appel.

Erreur:
The server encountered an error processing the request. The exception message is 'An internal error occurred. '. See server logs for more details. The exception stack trace is:
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte[] rawData, Object password, X509KeyStorageFlags keyStorageFlags)
at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(Byte[] data) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(Byte[] rawData)
at JdSoft.Apple.Apns.Notifications.NotificationConnection.start(String p12File, String p12FilePassword)
at JdSoft.Apple.Apns.Notifications.NotificationService.set_Connections(Int32 value)
at JdSoft.Apple.Apns.Notifications.NotificationService..ctor(Boolean sandbox, String p12File, String p12FilePassword, Int32 connections)
at ws_TestPush.ws_Test.DoSendPush() in c:\users\lordvoid\documents\visual studio 2010\Projects\ws_TestPush\ws_TestPush\ws_Test.svc.cs:line 20
at SyncInvokeDoSendPush(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
En local j'ai Windows 7 Premium 64bit, IIS 7.5, VS2010 Pro, navigateur (Firefox, ie, Chrome)
Sur le serveur j'ai Windows Sever 2008 R2 Standard 64bit, IIS 7.5

Pour envoyer les notifications j'utilise apns-sharp .

Pourriez vous m'aider à résoudre ce problème ?
Merci