Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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.
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!
Thanks!
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......
@MathanKumar Can you share the full error/output you're getting?
@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!
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!