I use the code below for push notification.
public void PushNotificationIOS(string message, string registrationKey) { string deviceID = registrationKey; int port = 2195; String hostname = System.Configuration.ConfigurationManager.AppSettings["HostName"];
I get the following error Authentication failed because the remote side has closed the transport stream. In Trace, I get below
System.Net.Security.SslState.CheckThrow(Boolean authSucessCheck) at System.Net.Security.SslState.get_SecureStream() at System.Net.Security.SslStream.Write(Byte[] buffer)
I tried everything that was mentioned in different posts, but cannot solve the problem.
source share