AMANZATECH / apns-sharp

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

Error Sending MSG :Unable to write data to the transport connection: An established connection was aborted by software on host machine #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Im not sure it is installed on WIN 2008 6b Bit
2.Running the Test sample with latest token and default settings. 
3.

What is the expected output? What do you see instead?
Expected to see the Push notification in the Iphone , don't see nothing . 
I get the abobe error in the Console window after "Cleaning UP"

What version of the product are you using? On what operating system?
2008 64 Bit , Latest

Please provide any additional information below.

Thank you for your time. 
Tamir

Original issue reported on code.google.com by tamir.ko...@gmail.com on 4 Nov 2010 at 1:46

GoogleCodeExporter commented 8 years ago
this is the same as the last comment in issue 19

Original comment by tamir.ko...@gmail.com on 4 Nov 2010 at 2:01

GoogleCodeExporter commented 8 years ago
solved by recreating the APP ID and the whole process.
Thank you

Original comment by tamir.ko...@gmail.com on 15 Nov 2010 at 10:13

GoogleCodeExporter commented 8 years ago

Original comment by jond...@gmail.com on 15 Nov 2010 at 12:04

GoogleCodeExporter commented 8 years ago
I am getting the same error, :( i've got no solution yet
What i did to resolve was
1. Disable firewal 
2. request.KeepAlive = false;

but no luck yet

Original comment by gotoha...@gmail.com on 23 Dec 2011 at 5:59

GoogleCodeExporter commented 8 years ago
I have the same problem. I verified that I'm using the correct profile for the 
App ID. I created the cert using these instructions:

Step 1:
openssl x509 -in aps_developer_identity.cer -inform DER -out 
aps_developer_identity.pem -outform PEM}

Where aps_developer_identity.cer is the file you download from the portal

Step 2:
openssl pkcs12 -nocerts -out APSCertificates.pem -in APSCertificates.p12

Where APSCertificates.p12 is a file you export from the Mac Keychain. This is 
critical, you must import the certificate from the portal into keychain. Find 
it in My Certificates, open the disclosure triangle and highlight both the 
certificate and the private key, then right click and export them. Give them a 
password and save them to a p12 file.

Step 3:
openssl pkcs12 -export -in aps_developer_identity.pem -out 
aps_developer_identity.p12 -inkey APSCertificates.pem

I then copied the device token from xcode while debugging, removed the blank 
spaces, and pasted it into the device token variable in the test project. 
Command line shows the following when running it:

Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Connecting...
Connected...
Notification Success: {"aps":{"alert":"Testing 1...","badge":1,"sound":"default"
}}
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Error: Unable to write data to the transport connection: An established connecti
on was aborted by the software in your host machine.
Connecting...
Connected...
Notification Success: {"aps":{"alert":"Testing 2...","badge":2,"sound":"default"
}}
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Error: Unable to write data to the transport connection: An established connecti
on was aborted by the software in your host machine.
Connecting...
Connected...
Notification Success: {"aps":{"alert":"Testing 3...","badge":3,"sound":"default"
}}
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Error: Unable to write data to the transport connection: An established connecti
on was aborted by the software in your host machine.
Connecting...
Connected...
Notification Success: {"aps":{"alert":"Testing 4...","badge":4,"sound":"default"
}}
Notification Queued!
Sleeping 15000 milliseconds before next Notification...
Error: Unable to write data to the transport connection: An established connecti
on was aborted by the software in your host machine.
Connecting...
Connected...
Notification Success: {"aps":{"alert":"Testing 5...","badge":5,"sound":"default"
}}
Cleaning Up...
Done!
Press enter to exit...

This was run on two different Windows 7 machines with the firewall turned off, 
just in case. Any ideas?

Original comment by pon...@gmail.com on 14 Jan 2012 at 4:34

GoogleCodeExporter commented 8 years ago
Hi, i have the same problem, some Notifications have been sent ,but some 
failed. 

error below:
09:32:41 Error:  Unable to write data to the transport connection: An 
established connection was aborted by the software in your host machine.

how to improve it ?

Original comment by libinbi...@gmail.com on 27 Mar 2012 at 2:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, i have the same problem, but for me Notifications have been repeatedly sent 
to iPhone. 

error below:
Error:  Unable to write data to the transport connection: An established 
connection was aborted by the software in your host machine.

Can anyone help me out ???

Original comment by harlb...@gmail.com on 19 Apr 2012 at 11:27