question

sarang-farhangi11286 avatar image
sarang-farhangi11286 asked Tyler Liu commented

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


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 it.

sdk
1 |3000

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

Tyler Liu avatar image
Tyler Liu answered
Please check  https://github.com/dotnet/standard/issues/542

I was able to fix a similar issue by following the instructions there.
1 |3000

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

sarang-farhangi11286 avatar image
sarang-farhangi11286 answered Tyler Liu commented
we are using 4.5.2 framework . Tried the code in this link but the same error is still there
3 comments
1 |3000

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

Tyler Liu avatar image Tyler Liu ♦ commented ·
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?
0 Likes 0 ·
sarang-farhangi11286 avatar image sarang-farhangi11286 commented ·

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");


}


}
}
0 Likes 0 ·
Tyler Liu avatar image Tyler Liu ♦ commented ·
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.
0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys