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)