intercom / intercom-dotnet

Intercom API client library for .NET
https://developers.intercom.io/reference
Apache License 2.0
63 stars 53 forks source link

Rest Sharp conflict #98

Open twilly86 opened 6 years ago

twilly86 commented 6 years ago

After upgrading to the latest version of the intercom pacakage, I keep getting this error, I am on the latest version of restsharp..

Additional information: Could not load file or assembly 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have this in my config file, so it should be picking up the right version of restsharp..

  <dependentAssembly>
    <assemblyIdentity name="RestSharp" publicKeyToken="598062e77f915f75" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-106.2.1.0" newVersion="106.2.1.0" />
  </dependentAssembly>
kmossco commented 6 years ago

Hey @twilly86! Thanks for reporting this. Just to be sure here, are you using our current nuget package (latest), or have you tried updating to the new branch I created a few hours ago here: #97?

twilly86 commented 6 years ago

I am on Intercom.Dotnet.Client" version="1.0.31", is this from #97?

kmossco commented 6 years ago

In that case you are on the current stable version of Intercom. If you revert RestSharp to 105.2.3 does it work? And can you tell me which framework you are compiling against? Our current version only supports net45.

kmossco commented 6 years ago

@twilly86 were you able to get this working, or are you still blocked?

kmossco commented 6 years ago

Closing this one as no further reports were open since then both here and in Intercom. It is very possible that the RestSharp version being used needed a different compiler and as such a .NET Core/Standard compiler was being used and our library isn't ready yet for it.

slegay commented 6 years ago

Same problem here. It looks like using the latest version of RestSharp causes dependency issues with intercom client.

kmossco commented 6 years ago

I will need to test and see what changed, but we may need some time to adapt to the new version of RestSharp.

twilly86 commented 5 years ago

i downgraded to restsharp 105.2.3.0 and it fixed it. I now need to upgrade restsharp past that version and I'm getting this error again. I couldn't download the new intercom 2+ version since it installs a bunch of dotnet core packages into my library causing more issues.

twilly86 commented 5 years ago

Any update on this?

slegay commented 5 years ago

Same problem here.

justlearntutors commented 4 years ago

Same problem on my project

user1311 commented 3 years ago

Same issue here, i can't downgrade then i get issue that it doesn't support net4.7.2

Error msg : System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=106.11.7.0, Culture=neutral, PublicKeyToken=598062e77f915f75' or one of its dependencies. The system cannot find the file specified.

MohammedMubeen commented 3 years ago

Hi Folks,

I also face same problem , Please help on this.

System.IO.FileNotFoundException: Could not load file or assembly 'RestSharp, Version=106.11.7.0, Culture=neutral, PublicKeyToken=598062e77f915f75' or one of its dependencies. The system cannot find the file specified.

justlearntutors commented 2 years ago

Same problem. 'Could not load type 'RestSharp.IRestClient' from assembly 'RestSharp, Version=107.2.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75'.'

BlairMcClelland commented 1 year ago

Any update on this? Or any workarounds that don't involve loading multiple Restsharp like this?