Copied to clipboard

Flag this post as spam?

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


  • Jay 425 posts 652 karma points
    May 05, 2017 @ 14:40
    Jay
    0

    Umbraco 7.6 upgrade, getting error updating other nuget package

    Hi All,

    i've upgraded my umbraco from 7.5.3 to the latest 7.6,

    everything seems to be loading alright. I thought of upgrading some of my nuget packages like Nested Content from 0.3.0 to 0.4.0 but got the below

    An error occurred while retrieving package metadata for 'Newtonsoft.Json.10.0.2' from source 'xxxxx\packages'.  
    

    Any idea how i can resolve this?

  • Alex Skrypnyk 6175 posts 24176 karma points MVP 8x admin c-trib
    May 05, 2017 @ 16:19
    Alex Skrypnyk
    101

    Hi JLon,

    Try to do these steps:

    1. In Explorer open folder where your project resides. Open packages.config using Notepad. Find and remove the line that mentions corrupted package name.

    2. Open folder where your solution resides. Open subfolder "packages". Find the folder with the corrupted package and remove it. Note: If you delete the wrong package, just enable NuGet to restore in Visual studio "Options", and while enabled, right-click solution and select "Restore missing NuGet packages"

    3. Right-click solution and select "Restore missing NuGet packages"

    Thanks,

    Alex

  • Jay 425 posts 652 karma points
    May 05, 2017 @ 21:04
    Jay
    1

    It works. Thanks

  • Ben McKean 272 posts 549 karma points
    May 09, 2017 @ 20:10
    Ben McKean
    0

    This didn't work for me unfortunately, seems strange for us to get this after Umbraco upgrade....

    I can't upgrade Umbraco or Umbraco Forms whilst I get this message

  • Alex Skrypnyk 6175 posts 24176 karma points MVP 8x admin c-trib
    May 09, 2017 @ 20:14
    Alex Skrypnyk
    0

    Hi Ben

    Do you have problem only with 'Newtonsoft.Json.10.0.2'?

  • Ben McKean 272 posts 549 karma points
    May 09, 2017 @ 20:33
    Ben McKean
    0

    Hi Alex,

    It was a problem Newtonsoft and System.Threading.Tasks.Dataflow. Once I removed those from packages.config it worked. However I'm not not able to upgrade to 7.6.1 because I get the following in VS!

    Unable to find a version of 'UmbracoCms.Core' that is compatible with 'Archetype.Binaries 1.13.2 constraint: UmbracoCms.Core (≥ 7.2.2)', 'Codery.TextCount 1.0.8 constraint: UmbracoCms.Core (≥ 7.5.6)', 'Our.Umbraco.CoreValueConverters 3.1.2 constraint: UmbracoCms.Core (≥ 7.4.2 && ≤ 7.6.0)', 'Our.Umbraco.NestedContent 0.4.0 constraint: UmbracoCms.Core (≥ 7.1.4)', 'RJP.UmbracoMultiUrlPicker 2.0.0 constraint: UmbracoCms.Core (≥ 7.6.0 && < 8.0.0)', 'Terratype 1.0.8 constraint: UmbracoCms.Core (≥ 7.0.0)', 'UmbracoCms 7.6.1 constraint: UmbracoCms.Core (= 7.6.1)', 'UmbracoForms.Core 6.0.1 constraint: UmbracoCms.Core (≥ 7.6.0 && < 7.7.0)', 'uSync.Core 5.6.3.740 constraint: UmbracoCms.Core (≥ 7.4.0)'

  • Ben McKean 272 posts 549 karma points
    May 09, 2017 @ 20:44
    Ben McKean
    0

    Looks like it was Umbraco Core Property Value Converters that was holding it back. I removed that and it worked. I presume its because this is now in the core.....

  • Alex Skrypnyk 6175 posts 24176 karma points MVP 8x admin c-trib
    May 09, 2017 @ 20:55
    Alex Skrypnyk
    0

    Yes, it's in Core, what if you disable it?

  • Ben McKean 272 posts 549 karma points
    May 09, 2017 @ 20:56
    Ben McKean
    0

    I needed to remove the package from my project for Umbraco to upgrade

  • Jay 425 posts 652 karma points
    May 12, 2017 @ 13:40
    Jay
    0

    Oh yeah i've removed mine after the upgrade too

  • Simon 692 posts 1068 karma points
    Jul 24, 2017 @ 07:34
    Simon
    0

    Hi Guys,

    I am experiencing a related issue when trying to update Umbraco to 7.6.4

    Just Simply trying to update UmbracoCMS via nuget and is not allowing me because of this error.

    An error occurred while retrieving package metadata for 'Newtonsoft.Json.10.0.2'
    

    I tried to follow the above steps to solve this problem.. but first of all, I do not have any corrupted files in the packages.config.. and I also I tried to remove the mentioned packages that Ben mentioned and again, no success.

    I would appreciate a lot any kind of help / suggestments how I can actually update my Umbraco without these issues.

    Thank you.

  • Ben McKean 272 posts 549 karma points
    Jul 24, 2017 @ 09:04
    Ben McKean
    0

    Hi Simon,

    Did you try commenting out the Newtonsoft and System.Threading.Tasks.Dataflow lines from packages.config and run the nuget update command again?

    Thanks

    Ben

  • Alex Skrypnyk 6175 posts 24176 karma points MVP 8x admin c-trib
    Jul 24, 2017 @ 08:36
    Alex Skrypnyk
    0

    Hi Simon

    Can you show what do you have in web.config, assemblyBinding section?

    Thanks,

    Alex

  • Simon 692 posts 1068 karma points
    Jul 24, 2017 @ 08:38
    Simon
    0
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <!-- Old asp.net ajax assembly bindings -->
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <!-- Ensure correct version of MVC -->
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
          </dependentAssembly>
          <!-- Ensure correct version of HtmlAgilityPack -->
          <dependentAssembly>
            <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.4.9.5" newVersion="1.4.9.5" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
          </dependentAssembly>
          <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>
          <dependentAssembly>
            <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
          </dependentAssembly>
        </assemblyBinding>
    
Please Sign in or register to post replies

Write your reply to:

Draft