cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When creating DropboxClient I'm getting an unable to find System.Net.Http, Version=4.0.0.0 assembly

When creating DropboxClient I'm getting an unable to find System.Net.Http, Version=4.0.0.0 assembly

BMurri
Explorer | Level 4

Working on upgrading a 8.1 winphone app to API v2 and we get an exception about not finding/loading the System.Net.Http assembly whenever the constructor for the DropboxClient is called. Tried installing the System.Net.Http NuGet package and it says none of my project types apply. Tried installing the Microsoft.Net.Http NuGet package and it tells me that the assembly it found can't be used (it finds a version 1.5.0.0 and it requires a 4.0.0.0). Installing the v2 api nuget package didn't depend on any other packages for our project types.

 

Anyone have any ideas? I've tried rebinding in app.config with no success. I've tried creating other project types for the system.net.http nuget package and can't get it to create a reference to one of its included assemblies using any incantation that applies to WinPhone (meaning I don't have a clear path to follow trying to subvert the system).

 

Anyone else using DropBox with winphone 8.1 apps?

12 Replies 12

kremesko
New member | Level 2
Hi I am a simple user waiting for you profs to make winpass workvagain with dropbox. Any progress or Hope ?

Greg-DB
Dropbox Staff

@kremesko This thread is for programmers experiencing a specific issue when creating API applications. It sounds like you're not a programmer running in to this particular issue, so you'd be better served by opening a thread in another section of the forum, e.g., Error messages. Or, if you're having trouble with a particular third party application, you should contact the developers of that application.

jronnen7
New member | Level 2

Sorry, disregard below, unless you are getting an issue where it cannot find reference to System.Diagnostics.DiagnosticSource Version="4.0.0.0" when you create a dropox api client.  I misread the package error you were getting.

 

 

After much frustation. I was able to solve this issue.  I had to install two nuget packages.

 

 <PackageReference Include="Dropbox.Api" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.DiagnosticAdapter" Version="2.0.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="4.4.1" />

 

After referencing both DiagnosticSource and DiagnosticAdapter I was able to get the api working.

 

Bests,

Jared

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    jronnen7 New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    kremesko New member | Level 2
What do Dropbox user levels mean?