-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. #597
Comments
Hi, I am doing more research into this issue and, in trying to narrow down the root cause, I came upon this link: I have a project (rather, a really big solution) that is using Now, I have to take a visual studio solution with 200+ projects in it and somehow convert all of them to |
I am going to try turning the Auto-generate binding redirects off first. Since my solution is so big, and since So I am trying whatever I can think of, just short of that, first. I think it is when the |
I imagine you've googled the error message and seen the sheer number of Stack Overflow questions and GitHub issues related to this. I'd even venture to guess most .NET developers have wasted multiple days on this one at some point in their career. :) I don't recall the specifics of what I've done in the past. My best advice is read through the answers here, and if your goal is to fix it without widespread changes, then focus on just System.Net.Http, even if you have to type a binding redirect manually. That's where the problem is. I'll keep this open as informational if you want to report your findings, but this isn't a Flurl bug, and I won't be able to help you any farther than what you'll find googling this. |
Hi @tmenier Thanks for the update. I actually solved it, and thankfully it did not take a huge amount of effort. Not thankfully -- as you yourself alluded to above -- it took me several weeks of Googling to figure this out. :-( It turns out I only needed to change code in the Also had to make the same changes in the I then went to my You have to rename the file in the Poof! The error disappeared. I am so glad I found an answer to my issue without having to right-click on all 200+ projects in my Solution and say Migrate packages.config to PackageReference -- that would have been such a pain! |
Nice. Yes in my experience "less is more" when it comes to binding redirects. In other words, I've had better luck fixing problems by deleting them than by adding/changing them. Let the runtime figure it out. Glad you got to the bottom of it. |
I am utilizing the
Coinbase
project by Brian Chavez @bchavez, which itself depends onFlurl
andFlurl.Http
.I am 100% sure I have the very latest NuGet packages installed and my solution builds; however, in my logs I am seeing:
I am completely baffled what is the root cause of this error. I have forked this repo and cloned it to my local machine for testing purposes. I also have deleted the
.git
andgithub
folders in the clone, out of an abundance of caution. I do not want to accidently screw up the remote until I am 100% sure of the cause.Request permission to do some digging and then post more info on this comment thread. Perhaps I may even be able to submit a PR. However, my plan for the moment is to add the
Flurl
andFlurl.Http
projects to my solution and fill the source code with extra log4net calls to try and track down the culprit.Will post to this thread when I know more.
The text was updated successfully, but these errors were encountered: