cancel
Showing results for 
Search instead for 
Did you mean: 

getting this error s: System.ComponentModel.Win32Exception: The client and server cannot communicate

When i run the asp.net program locally it works but when i put it on the godaddy server i get this error.

 

s: System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm

 

Below is the code

 

const SslProtocols _Tls12 = (SslProtocols)0x00000C00;

const SecurityProtocolType Tls12 = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

ServicePointManager.SecurityProtocol = Tls12;

var request = new getHostedPaymentPageRequest();

request.transactionRequest = transactionRequest;

request.hostedPaymentSettings = settings;

var controller = new getHostedPaymentPageController(request);

controller.Execute();

 

rrr944276
Contributor
1 REPLY 1

What version of Windows is the Godaddy server? Try the following, to see what version the server's Schannel is using:

using System;
using System.Net;
using System.IO;

namespace howsMySSL
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
var response = WebRequest.Create("https://www.howsmyssl.com/a/check").GetResponse();
var responseData = new StreamReader(response.GetResponseStream()).ReadToEnd();
Response.Write(responseData);

}
}
}
Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor