logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, July 19, 2022 1:17:37 PM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
We upgraded a 9.0.4 site to 9.0.6 using the files in the upgrade download and are getting the error below. Can you give me any help? There is another 9.0.6 site on the server, but I did not use the upgrade package files to do it. Thanks

Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Net.Http.Formatting' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:


[FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Katie S  
#2 Posted : Tuesday, July 19, 2022 1:24:04 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Hello,

There is no direct upgrade path from 9.0.4 to 9.0.6. Please confirm that you updated from 9.0.4 > 9.0.5 > 9.0.6 using two different upgrade .zip files.

Also, for 9.0.5, you need to make sure the website is running Asp.Net 4.8.

Thanks for your support!

Katie
Secure eCommerce Software and Hosting
Joe Payne2  
#3 Posted : Tuesday, July 19, 2022 3:08:36 PM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Follow the instructions to turn on the bind failure logging. It's a hassle but it will tell you exactly why the DLL failed to load.

Either you're missing that DLL in the /bin/ folder, or the version that is there isn't what another DLL wants to see. failure logging will tell you which.

judy at Web2Market  
#4 Posted : Thursday, July 21, 2022 5:51:45 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I wasn't able to find a tool to use for debugging assembly binding remotely. I compared the pertinent files with another 9.0.6 site that is on the same server and couldn't find a difference. For now, I have commented out the binding for System.Web.Http in the web.config and so far, I haven't seen a problem.
judy at Web2Market  
#5 Posted : Thursday, July 21, 2022 7:52:28 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I take it back. I was able to find a difference. There was no difference in my GitHub version, but the site had an extra file in the bin folder that had been an artifact of custom code on the 9.0.5 site. It just wasn't in my GitHub 9.0.6 version. Once I deleted it from the bin folder, the site was OK.
Joe Payne2  
#6 Posted : Thursday, July 21, 2022 8:26:35 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Well done young lady :)
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.