docusign / docusign-esign-csharp-client

The Official Docusign C# Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://developers.docusign.com/docs/esign-rest-api/sdks/csharp/
MIT License
129 stars 159 forks source link

Docusign "Could Not load file or Assembly Restsharp" Error #273

Closed mia01 closed 4 years ago

mia01 commented 4 years ago

Hello,

I'm using Docusign in my (.netcore 3.1) project and I'm also using another nuget package which relies on minio. Both seem to rely on Restsharp.

When I try to run my app I'm getting this error:

System.IO.FileLoadException: 'Could not load file or assembly 'RestSharp, Version=106.3.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)'

Docusign Version: 4.4.1

This is a screenshot of the dependencies as viewed from visual studio: image

image

I've tried adding this binding redirect in App.Config:

<configuration>
  <runtime>
    <dependentAssembly>
      <assemblyIdentity name="RestSharp" publicKeyToken="598062e77f915f75" culture="neutral" />
      <bindingRedirect oldVersion="0.0.0.0-106.3.1.0" newVersion="106.10.1" />
    </dependentAssembly>
  </runtime>
</configuration>

This has had no impact whatsoever. Please can you help me. Any help very much appreciated! :)

RajRele commented 4 years ago

Hi @mia01 you are facing an existing issue with RestSharp Library compatibility. https://github.com/docusign/docusign-csharp-client/issues/101 We are working towards a fix by this week, in the meantime you can get our source code from this git repo and update the RestSharp Dependency manually.

We will soon update the NuGet package so that you don't have to do this workaround.

RajRele commented 4 years ago

Hi @mia01 please try to get a pre-release version https://www.nuget.org/packages/DocuSign.eSign.dll/4.5.0-rc and let us know if this resolves your issue?

Alternatively you can use dotnet add package DocuSign.eSign.dll --version 4.5.0-rc

Thanks

RajRele commented 4 years ago

Closing this as resolved, open a new issue if you still face this. thank you