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();
โ08-22-2017 09:48 AM
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);
}
}
}
โ08-22-2017 10:40 AM