intercom-dotnet icon indicating copy to clipboard operation
intercom-dotnet copied to clipboard

Rest Sharp conflict

Open twilly86 opened this issue 7 years ago • 15 comments

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>

twilly86 avatar Jan 12 '18 17:01 twilly86

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?

kmossco avatar Jan 12 '18 17:01 kmossco

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

twilly86 avatar Jan 12 '18 17:01 twilly86

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 avatar Jan 12 '18 17:01 kmossco

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

kmossco avatar Jan 24 '18 08:01 kmossco

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.

kmossco avatar Jan 29 '18 23:01 kmossco

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

slegay avatar Jul 06 '18 17:07 slegay

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

kmossco avatar Jul 07 '18 12:07 kmossco

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 avatar Dec 03 '18 20:12 twilly86

Any update on this?

twilly86 avatar Jan 16 '19 20:01 twilly86

Same problem here.

slegay avatar Mar 18 '19 18:03 slegay

Same problem on my project

justlearntutors avatar Feb 18 '20 12:02 justlearntutors

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.

user1311 avatar Dec 04 '20 10:12 user1311

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.

MohammedMubeen avatar Mar 26 '21 18:03 MohammedMubeen

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

justlearntutors avatar Feb 09 '22 13:02 justlearntutors

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

BlairMcClelland avatar Dec 15 '22 02:12 BlairMcClelland