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

Cannot run with Newtonsoft.Json version 13 #54

Open
davidcchase opened this issue Feb 22, 2022 · 1 comment
Open

Cannot run with Newtonsoft.Json version 13 #54

davidcchase opened this issue Feb 22, 2022 · 1 comment

Comments

@davidcchase
Copy link

TaxJar version 3.3.2 in NuGet requires Newtonsoft.Json minimum version 12.0.3 (if I'm reading the NPM description properly). I have Newtonsoft.Json v 13.0.1 already installed and I'm getting "Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0....The located assembly's manifest definition does not match the assembly reference" when I call a TaxJar method at runtime.

I've tried downgrading Newtonsoft to v12, which works for this problem but causes others which depend on v13.

Can TaxJar be updated to accept Newtonsoft.Json 13?

Thanks, Dave

@iNetDaniel
Copy link

In the web.config or app.config you can set the runtime so that older assembly references get bumped to the one referenced by the project.

<?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>

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

2 participants