Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
tfierens
9 years agoNew member | Level 2
Invalid version of Newtonsoft.json with Dropbox.API v4.0.30319
Hi,
I'm getting the following run-time error when trying to upload a file to Dropbox using the DropBox.API for .NET.
Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
The Dropbox version I'm using is v4.0.30319 and it comes installed with NewtonSoft.Json version v7.0.1 but I've upgraded my version to v10.0.3. I've checked the Dropbox.API dependencies and it is stating that it should use NewtonSoft.Json v7.0.1 or higher which it is.
The weird thing is that I upgraded weeks ago to 10.0.2 and never had any problems, certainly not related to not finding v7.0.1.
Any ideas how I can resolve this?
Thanks.
7 Replies
- tfierens9 years agoNew member | Level 2
I managed to fix it, well thanks to StackOverflow.
I added the following to my app.config file in the Configuration section.
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="10.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime>Hopefully, it will be of some help to others!
- Bruce W.79 years agoExplorer | Level 4
Thanks!
- MathanKumar8 years agoExplorer | Level 4
i used your step but still now i get the same error ..... i try to upgrade the newtonsoft version 7.0 to 9.0.
help me to solve this issue......
- Greg-DB8 years ago
Dropbox Community Moderator
MathanKumar Can you share the full error/output you're getting?
- MathanKumar8 years agoExplorer | Level 4
- Greg-DB8 years ago
Dropbox Community Moderator
Thanks! We'll look into it. - Greg-DB8 years ago
Dropbox Community Moderator
MathanKumar Unfortunately, it's not clear what the issue may be, and it's likely related to the particular project configuration. If you're still seeing this, please share a sample project that reproduces the issue so we can reproduce it and investigate. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!