Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • joe 3 posts 73 karma points
    Jan 16, 2016 @ 15:50
    joe
    0

    Updating Umbraco from 7.2.8 to 7.3.5

    Hi,

    I have an umbraco 7.2.8 site in Visual Studio 2015.

    The source is in TFS.

    I have tried to update to 7.3.5 using nuget in package manager console:

    pm> Update-Package UmbracoCms

    It goes through the update process without errors.

    However, when I build & run the site I get the following error:

    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)

    I've tried this update from 2 different PCs and get the same result.

    How can I fix this?

    Cheers Joe

  • Paul Sørensen 302 posts 648 karma points
    Jan 16, 2016 @ 20:36
    Paul Sørensen
    0

    Hi Had the same issue because my web.config was not properly updated - I did it manually

    this is what has to be in it

      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
    

    /Paul S

  • Nikhil Prajapati 5 posts 76 karma points
    Jan 18, 2016 @ 07:25
    Nikhil Prajapati
    0

    Hi,

    Yes, it will be the issue in web.config section. At the time of updating it will prompt for updating the web.config file and you may said no or may be other than that.

    I also got the same issue while updating the umbraco. I have also set thid manually.

    Just do like that:

    <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
    

    It really works. I hope you will get your answer.

  • joe 3 posts 73 karma points
    Jan 18, 2016 @ 09:52
    joe
    0

    Thanks for replies Paul & Nikhil.

    I will check tonight but I think the web.config had those settings. However, when I built the web site I noticed the version of System.Net.Http.Formatting.dll in the bin folder was v4.0.x

    Will post later with confirmation.

    Cheers Joe

  • joe 3 posts 73 karma points
    Jan 24, 2016 @ 19:27
    joe
    0

    Hi everyone,

    I finally fixed this issue by first:

    • first rolling all changes to the state before I attempted to update
      • using NuGet package manager to update the Microsoft.AspNet.* packages to latest version (I think there were 5 packages in total)
      • made sure this built & I could run the web site & checked the dll versions in the bin folder were as expected
      • used NuGet package manager console to update Umbraco to 7.3.5
      • I built the solution but got error when running the site so I had to edit web.config & edit the binding redirect for System.Web.WebPages to redirect to version 3.
  • Nik 1321 posts 5662 karma points MVP 3x c-trib
    Jan 24, 2016 @ 21:39
    Nik
    0

    Hi Joe,

    I had the same problem doing the same upgrade, this was how I managed to fix it without messing around myself with the web config file..

    I fixed it by running the following two commands in the Package Manager Console in Visual Studio.

    1) This will remove the WebApi nuget package but leave all of it's dependencies and anything that depends on it.

    Uninstall-Package Microsoft.AspNet.WebApi -Force

    2) Re-install the package

    Install-Package Microsoft.AspNet.WebApi -Version 5.2.3

    By re-installing the package it fixed the issue I had in web config and it all burst into life.

Please Sign in or register to post replies

Write your reply to:

Draft