question

suriyakani-b avatar image
suriyakani-b asked ·

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

I have used https://service.ringcentral.com/faxapi.asp. It raised upgrade your browser error. Couldn't send the fax viia API in C#
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

John Wang avatar image
John Wang answered ·
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
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

suriyakani-b avatar image
suriyakani-b answered ·
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.
12 comments Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

For C#, please review the C# section under "Language specific instructions" in KB article 8778. Support is dependent on your version of .NET.

http://success.ringcentral.com/articles/RC_Knowledge_Article/8778

What version of .NET are you using?
0 Likes 0 · ·
When I had the problem I have checked the above article. But I couldn't find the way to resolve. My .net framework version is 4.0.
0 Likes 0 · ·
Is this a code issue, or the Transport Layer Security protocol (TLS) issue as stated previously by John in the comments? Have you resolved the TLS version warnings by following the instructions John provided by updating your server to support the required version of TLS? As John suggested, we do recommend that users of the older and less feature-rich faxapi.asp switch to our more robust and modern version of sending Fax with RingCentral through our Platform API. Accessing this does require meeting the minimum requirements to the Platform's Beta program (Office Premium or higher level plan with RingCentral by default receive access to the Developer Platform at: https://developers.ringcentral.com).
0 Likes 0 · ·
Here is a Google search term which I used to provide several results on how to update a Windows-based server to support TLS version RingCentral now requires: updating windows server to support TLS 1.2
0 Likes 0 · ·
yes. Thanks a million
1 Like 1 · ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.