ASP.Net- C# sample code to FAX PDF documents

  • 1
  • Question
  • Updated 4 weeks ago
  • (Edited)


I am new to FAX sending using ringcentral .I got the above error message while working with the code. 

I added the below line to web config.

<add assembly="'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" tagPrefix="extension"/>

still the error exists.

Do we need to replace the clientid and clientsecret id with our registered username and password? 

Please help me to proceed with.
Photo of Sarang Farhangi

Sarang Farhangi

  • 90 Points 75 badge 2x thumb

Posted 1 month ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
Please check https://github.com/dotnet/standard/issues/542

I was able to fix a similar issue by following the instructions there.
Photo of Sarang Farhangi

Sarang Farhangi

  • 90 Points 75 badge 2x thumb
we are using 4.5.2 framework . Tried the code in this link but the same error is still there
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
Did you try this: https://github.com/dotnet/standard/issues/542#issuecomment-339516364?

Add <Reference Include="netstandard" /> to csproj file.

If it doesn't work, could you please provide me with a hello world style app with which I can reproduce the issue?
Photo of Sarang Farhangi

Sarang Farhangi

  • 90 Points 75 badge 2x thumb

I added the reference here. But still issue is there
This is my code,

using RingCentral;
using System;
using System.Threading.Tasks;
using System.Web.UI;

namespace ringcentral {
public partial class _Default : Page {


protected void Page_Load(object sender, EventArgs e) {

}


public static async Task a() {
RestClient rc = new RestClient("clientId", "clientSecret");

await rc.Authorize("username", "extension", "password");


}


}
}
Photo of Tyler Long

Tyler Long, Official Rep

  • 7,008 Points 5k badge 2x thumb
Really sorry for the late reply. This forum blocked all the IP addresses from My country and I had difficulty login.

I cannot reproduce it. 

Could you please zip your sample project and send it to tyler.liu@ringcentral.com ?  I will try it on my laptop as soon as I receive it. Thanks.