apns-sharp

Can I use an X509Certificate2 within ASP.NET without using a certificate store?

帅比萌擦擦* 提交于 2019-12-23 08:54:21
问题 I am trying to use an X509Certificate within an ASP.NET web service within the Rackspace Cloud. I have a feeling the certificate stores on the cloud nodes maybe causing problems. I also have a question related to this with the exception that I am receiving at SslStream.AuthenticateAsClient Exception when using iPhone Apple Push Notification Provider (apns-sharp) C# Within the apns-sharp project I was using the following code: certificate = new X509Certificate2(p12File) However I received an

'SSL Stream Failed to Authenticate as Client' in APNS sharp

孤者浪人 提交于 2019-12-23 04:45:47
问题 Here is my error, while using Redth pushsharp notifications from github. And the inner Exceprion is: 'The message received was unexpected or badly formatted' and message : 'A call to SSPI failed, see inner exception.' I'm sending push notifications to iPhone. And i generated a .pem file and registering that certificate using register certificate in windows in my windows at cermgr.msc under Trusted Users and Personal also. I'm using: Windows 7 VS 2010 Net 4.0 Stack Trace at System.Net.Security

apple push notification with APNS sharp

岁酱吖の 提交于 2019-12-21 20:37:08
问题 i use APNS Sharp library for my apple push notification. i have downloded from Here.i use sample test program provided by APNS sharp library without any modification. it simply does not send any notification until i put break point at that line of code. if i put break point. i just work fine.is this expected behaviour or i am doing something wrong. and also i am not getting any exception. thanks for any help. here is the code static void Main(string[] args) { bool sandbox = true; string

PushSharp APNS Service Stop working after windows shutdown

放肆的年华 提交于 2019-12-13 02:31:53
问题 I can send notifications to my iPhone device succeffully using Push Sharp via sandbox APNS server but I am having a problem. I have generated .cer and .p12 files and then installed them on my windows 8 development machine successfully. I used this tutorial to install the certificates on my windows 8 machine. Yesterday things were working fine and I was sending the notification successfully. I shutdown my system and then next day when I try to run the code I was getting following exception:

iPhone certificate error in apns sharp A call to SSPI failed

╄→гoц情女王★ 提交于 2019-12-12 08:47:01
问题 i have a data service hosted in azure from which i am sending notification to iphone but while establishing connection with apns i am getting following error "A call to SSPI failed. The message received was unexpected or badly formatted." i also refered following links for the same error but still getting the error apple push notification with APNS sharp and C# iPhone push server? try { using (TcpClient client = new TcpClient()) { try { client.Connect("gateway.sandbox.push.apple.com", 2195);

apple push notification with APNS sharp

匆匆过客 提交于 2019-12-04 12:45:32
i use APNS Sharp library for my apple push notification. i have downloded from Here .i use sample test program provided by APNS sharp library without any modification. it simply does not send any notification until i put break point at that line of code. if i put break point. i just work fine.is this expected behaviour or i am doing something wrong. and also i am not getting any exception. thanks for any help. here is the code static void Main(string[] args) { bool sandbox = true; string testDeviceToken = "Token"; string p12File = "apn_developer_identity.p12"; string p12FilePassword =

iPhone certificate error in apns sharp A call to SSPI failed

China☆狼群 提交于 2019-12-04 05:54:43
i have a data service hosted in azure from which i am sending notification to iphone but while establishing connection with apns i am getting following error "A call to SSPI failed. The message received was unexpected or badly formatted." i also refered following links for the same error but still getting the error apple push notification with APNS sharp and C# iPhone push server? try { using (TcpClient client = new TcpClient()) { try { client.Connect("gateway.sandbox.push.apple.com", 2195); Logging("TSSLProDi :Connected to Apple"); } catch (Exception ex) { Logging("TSSLProDi :" + ex.Message +

How can I use the following events/delgates, written in C#, in VB.NET?

我与影子孤独终老i 提交于 2019-12-04 05:17:35
问题 I'm using JdSoft's APNS-Sharp library in my ASP.NET web app. The library is written in C#, and makes extensive use of Delegate Functions and Events for threading purposes. My application is written in VB.NET, and I'm a little confused on about how to translate the following sample code (C#): .... //Wireup the events service.Error += new FeedbackService.OnError(service_Error); .... } static void service_Error(object sender, Exception ex) { Console.WriteLine(...); } Here are the relevant

How can I use the following events/delgates, written in C#, in VB.NET?

我怕爱的太早我们不能终老 提交于 2019-12-02 03:39:15
I'm using JdSoft's APNS-Sharp library in my ASP.NET web app. The library is written in C#, and makes extensive use of Delegate Functions and Events for threading purposes. My application is written in VB.NET, and I'm a little confused on about how to translate the following sample code (C#): .... //Wireup the events service.Error += new FeedbackService.OnError(service_Error); .... } static void service_Error(object sender, Exception ex) { Console.WriteLine(...); } Here are the relevant members of the FeedbackService class: public delegate void OnError(object sender, Exception ex); public event