TanukiSharp / MHArmory

Armor Set Search application for Monster Hunter: World
MIT License
26 stars 8 forks source link

System.IO.FileNotFoundException #6

Closed Fatmice closed 5 years ago

Fatmice commented 5 years ago

Date: 12/13/2018 2:11:54 AM -06:00 Version: 0.0.8.0 CurrentCulture: en-US CurrentUICulture: en-US GitBranch: master GitCommitHash: 84f7c4bcbe08e546b349c25b04691b3056a74989 GitRepository: git@github.com:TanukiSharp/MHArmory.git

System.Windows.Markup.XamlParseException: 'The invocation of the constructor on type 'MHArmory.MainWindow' that matches the specified binding constraints threw an exception.' Line number '6' and line position '9'. ---> System.TypeInitializationException: The type initializer for 'MHArmory.AutoUpdate.AutoUpdater' threw an exception. ---> 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.

2018-12-13_08-11-54_987.log

I have .Net Framework 4.7.2 installed.

TanukiSharp commented 5 years ago

Thank you very much for reporting, this is a known issue that other users already encountered, and which still puzzles me... I know what the issue is, but I don't know how to fix it, and I can't reproduce it.

So what I can propose is to make test builds for you to try, if you have time, until the problem get fixed.

Fatmice commented 5 years ago

I'm happy to test it. I dug around and found some Stack Overflow of ppl reporting similar issues.

https://stackoverflow.com/questions/47570912/strange-issue-with-system-net-http-4-2-0-0-not-found

Reading some of the comments said that issue was solved on the compilation side when "removing the bindingRedirects..." whatever that means.

From reading the exception, it would appear that this is a path issue where some library is being linked with a static path during compilation whereas the path should be allowed to be feed by the OS on the user's end? This seems to be a type of linking error where the executable is looking the library in the wrong place, which was present on the compiling machine?

Some other github issues that maybe related? https://github.com/Azure/diagnostics-eventflow/issues/155 https://github.com/dotnet/corefx/issues/22781

TanukiSharp commented 5 years ago

Thank you for searching, I've searched too, and I've read here and there that I have to enable binding redirects 🤔

I've made an intermediate build 0.0.8.2 (not publicly available) for you to try. It is based on commit 9f6b221b16378a71612ec0f555f475bd632f7435 if you want to build it yourself.

Download link here: https://github.com/TanukiSharp/MHArmory/raw/master/Distributions/MHArmory_0.0.8.2.zip

Then changes made to this build:

Fatmice commented 5 years ago

This worked for me. image

Fatmice commented 5 years ago

Now that it works, there seems to be some differences in combination in the search result given the same skill constraints and same available sets from one of my favorite mix set searcher however that is a slightly different issue =) image

TanukiSharp commented 5 years ago

Good to hear this fixed the issue for you, let's hope that fixes it for others as well :)

As for the different results issue, feel free to open a new one to talk about it.