News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Could not load type 'RingCentral.SendFaxMessageRequest' from assembly 'RingCentral.Net
Tags: error
Jun 6, 2019 at 12:14pm   •   7 replies  •  0 likes
David Pedrelli

I have an existing, Windows console application, with Quartz.Net that operates as a scheduler. It targets .NET 4.6.2. It references a class library that targets .NET 4.6.2. I added the RingCentral NuGet package to the class library, with a job to send faxes. When I deployed it to the server, I got

Could not load file or assembly 'System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I added a binding redirect that pointed to the same version and it fixed that problem. RingCentral.Net.dll is deployed to the application directory. Then, I get

Could not load type 'RingCentral.SendFaxMessageRequest' from assembly 'RingCentral.Net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

If I add the RingCentral NuGet package to my console application, once again, I get

Could not load file or assembly 'System.Runtime, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
7 Answers
answered on Jun 10, 2019 at 11:34am  

@Tyler Liu because it is a Windows service, it would have to be .NET Core 3, which supports desktop applications. At one point, I tried to convert it to .NET Core 3 and deployed the runtime (which is still in Beta) to the server. However, I have not been able to get it to run on the server. Thus, I went back to .NET Framework.


 0
answered on Jun 10, 2019 at 10:16am  

Idea: since both RingCentral and Quartz support .Net Core. Can you make the scheduling program target .Net Core instead of .NET framework 4.6.2 ?


 0
answered on Jun 10, 2019 at 8:28am  

@Tyler Liu The video just shows adding the Nuget package. I don't have a problem there. I don't know that TopShelf or Quartz.NET have anything to do with it. I'm not sure if they may cause an issue for RingCentral. I can deploy the scheduling app, without RingCentral, and have no problem. It is only when I add the RingCentral package that I get what appears to be issues with binding redirects. It is just very odd that the scheduling program runs OK. The RingCentral test case runs OK. It is only when I add RingCentral to the scheduling program that there is an issue.


 0
answered on Jun 9, 2019 at 11:50pm  

Does this video help? https://www.youtube.com/watch?v=SRQzxqw1bm0

I have no experience with Quartz.Net. Have you contacted its support?


 0
answered on Jun 6, 2019 at 7:28pm  

Clarification.

It is a Windows console app that uses TopShelf to run as a Windows service. It uses Quartz.Net to run scheduled jobs. I only get the above errors, when the desired job executes.


 0
answered on Jun 6, 2019 at 4:15pm  

My tests cases of the Job, running inside of VS 2019 work fine. When Quartz.Net executes the job on the server, while referencing RingCentral, I get the errors. I don't know if RingCentral is causing a binding redirect, but both issues only seem to arise, when one or both project reference RingCentral.


 0
answered on Jun 6, 2019 at 12:28pm  

You mentioned that you got error after you deployed it to the server. Does it work on your local computer?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us