I have used https://service.ringcentral.com/faxapi.asp. It raised upgrade your browser error. Couldn't send the fax viia API in C#

  • 1
  • Problem
  • Updated 2 years ago
I have used https://service.ringcentral.com/faxapi.asp. It raised upgrade your browser error. Couldn't send the fax viia API in C#
Photo of Suriyakani B

Suriyakani B

  • 140 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of John Wang

John Wang, Official Rep

  • 4,798 Points 4k badge 2x thumb
Hi there. You are currently using our legacy fax API which was recently upgraded to require TLS 1.2 for security purposes. The error you are receiving indicates that your system does not support TLS 1.2. Please see our Knowledge Base article 8778 on how to resolve this:

TLS 1.2 KB Article: http://success.ringcentral.com/articles/RC_Knowledge_Article/8778

Additionally, you may want to consider upgrading to our new API which you can learn about at https://developers.ringcentral.com.

We also have a C# SDK available for the new API:

C# SDK on GitHub: https://github.com/ringcentral/ringcentral-csharp
C# SDK on NuGet: http://www.nuget.org/packages/RingCentralSDK
(Edited)
Photo of Suriyakani B

Suriyakani B

  • 140 Points 100 badge 2x thumb
I am using the below code. Can you help me what should do change here?

Dictionary<string, object> postParameters = new Dictionary<string, object>();            postParameters.Add("Username", ConfigurationManager.AppSettings["FaxAPIUserName"]);
            postParameters.Add("Password", ConfigurationManager.AppSettings["FaxAPIPassword"]);
            postParameters.Add("Recipient", "1"+BillFax+"");
            postParameters.Add("Coverpage", "0");
            postParameters.Add("Coverpagetext", "JLC Invoice");
            postParameters.Add("Resolution", ConfigurationManager.AppSettings["FaxResolution"]);
            postParameters.Add("Attachment", new FormUpload.FileParameter(data, "invoice.pdf", "application/pdf"));

            // Create request and receive response
            string postURL = ConfigurationManager.AppSettings["FaxAPIUrl"];
            string userAgent = "JLC";
            HttpWebResponse webResponse = FormUpload.MultipartFormDataPost(postURL, userAgent, postParameters);


Please help me regarding this. 

I tried the c# sdk but it cannot support my project. It raised some exception.
Photo of Benjamin Dean

Benjamin Dean

  • 8,582 Points 5k badge 2x thumb
Very good, thanks for the update.
Photo of Suriyakani B

Suriyakani B

  • 140 Points 100 badge 2x thumb
I have placed the below line in my code before triggering the sendfax method: 
ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
Photo of Benjamin Dean

Benjamin Dean

  • 8,582 Points 5k badge 2x thumb
And that worked as expected to resolve your issue?
Photo of Suriyakani B

Suriyakani B

  • 140 Points 100 badge 2x thumb
yes. Thanks a million
Photo of Benjamin Dean

Benjamin Dean

  • 8,582 Points 5k badge 2x thumb
Outstanding.