HarunBahcel / apns-sharp

Automatically exported from code.google.com/p/apns-sharp
0 stars 0 forks source link

can run apns notifications test, but when I try in my asp.net web application i get credentials for package not recognized #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. hosting a asp.net web app on iis7
2. trying to send notification
3.

What is the expected output? What do you see instead?
a connection, no connection / failed - credentials not recognized

What version of the product are you using? On what operating system?
latest 1.0.3

Please provide any additional information below.

Original issue reported on code.google.com by mikeyhar...@gmail.com on 25 Nov 2010 at 7:40

GoogleCodeExporter commented 8 years ago
Please use the SVN Trunk Source

Original comment by jond...@gmail.com on 25 Nov 2010 at 7:48

GoogleCodeExporter commented 8 years ago
Just tried with the trunk source. Still see the same problem.

I get an exception when the certificate object is created in 
NotificationChannel but i fix that by adding X509KeyStorageFlags.MachineKeySet.

certificate = new 
X509Certificate2(p12FileBytes,p12FilePassword,X509KeyStorageFlags.MachineKeySet)
;

It all works fine with the test application. I dont get it? :(

Original comment by mikeyhar...@gmail.com on 25 Nov 2010 at 8:04