Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not lod file or assembly after updating Newtonsoft.Json from 11.0.2 to 12.0.3 #408

Open
vGreatv opened this issue Nov 24, 2021 · 0 comments

Comments

@vGreatv
Copy link

vGreatv commented Nov 24, 2021

Hello everyone,

I have problem with updating Newtonsoft.Json from 11.0.2 to 12.0.3. I am using DeveloperForce.Force 2.0.7 and required Newtonsoft.Json is >= 11.0.2. I think there is some problem with Salesforce.Common.

Calling kit: Salesforce.Common, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 9f7864e53fb79388. LOG: reference after applying policy: Newtonsoft.Json, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed WARNING: Comparing assembly name resulted in a major version mismatch ERROR: Unable to complete the installation of the kit (hr = 0x80131040). Polling complete.

Could not load file or assembly 'Newtonsoft.Json, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed' or one of its dependencies. The localized assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040); System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 30ad4fe6b2a6aeed' or one of its dependencies. The localized assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
   in Salesforce.Common.AuthenticationClient.<UsernamePasswordAsync>d__27.MoveNext()
   in System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   in Salesforce.Common.AuthenticationClient.UsernamePasswordAsync(String clientId, String clientSecret, String username, String password, String tokenRequestEndpointUrl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant