`Error coming: The client and server cannot communicate because they do not possess a common algorithm.
enter image description here,,,, In Global.asax.cs I have added :
        `// using System.Net;
        ServicePointManager.Expect100Continue = true;
        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;`
In Web.config:     <system.web>
<compilation debug="true" targetFramework="4.8" /> <httpRuntime targetFramework="4.8" />
and in controller calling api:
       `var request = WebRequest.Create("https://********receivesms_xml.html");
        request.Method = "POST";           
        byte[] byteArray = Encoding.UTF8.GetBytes(Content);
        request.ContentType = "text/html; charset=UTF-8";
        request.ContentLength = byteArray.Length;
        
        
        using (Stream dataStream = request.GetRequestStream())
        {
            dataStream.Write(byteArray, 0, byteArray.Length);
            dataStream.Close();
        }`
Error coming: The client and server cannot communicate because they do not possess a common algorithm.
Please advise. Thank YOu.
I have tried adding code before web request start to add tls13,
       ` // using System.Net;
        ServicePointManager.Expect100Continue = true;
        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;`
and I have added In window registry, tls12