Copied to clipboard

Flag this post as spam?

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


  • John Churchley 272 posts 1258 karma points c-trib
    Jan 10, 2015 @ 19:11
    John Churchley
    0

    NuGet upgrading ClientDependency Versions Wrong

    Can't answer why this happen but when I upgrade using NuGet from 7.1.3 to 7.2.1 I experience an issue with the ClientDependency.Core & ClientDependency.Core.Mvc reference version becoming 1.8.0.0. 

    Other people have expereince a similar issue http://stackoverflow.com/questions/27450784/umbraco-7-2-cannot-add-controller

  • John Churchley 272 posts 1258 karma points c-trib
    Jan 10, 2015 @ 19:14
    John Churchley
    100

    The solution was to edit the package.config to the correct versions then rebuild the solution, remove the wrong assemblies references then add the correct versions back from the packages folder (followed by another rebuild). You may also need to check for the references both "Copy local" fields are set to true.

    Hope this helps someone else.

  • Stuart 11 posts 34 karma points
    Jan 20, 2015 @ 13:06
    Stuart
    2

    Solution without Restart, File explorer etc. For Version 7.2.1

    1. Open MVC 4 Template in Visual Studio 2014

    2. Select Empty Template 

    3. in the package explorer install UmbracoCMS 7.2.1 : install-package UmbracoCMS -Version 7.2.1

    4. PM> uninstall-package ClientDependency -Force

      Removing 'ClientDependency 1.8.0.0' from New_App.

      Successfully removed 'ClientDependency 1.8.0.0' from New_App.

      Uninstalling 'ClientDependency 1.8.0.0'.

      Successfully uninstalled 'ClientDependency 1.8.0.0'.

       

      PM> uninstall-package ClientDependency-MVC -Force

      Removing 'ClientDependency-Mvc 1.8.0.0' from New_App.

      Successfully removed 'ClientDependency-Mvc 1.8.0.0' from New_App.

      Uninstalling 'ClientDependency-Mvc 1.8.0.0'.

      Successfully uninstalled 'ClientDependency-Mvc 1.8.0.0'.

       

      PM> install-package ClientDependency -Version 1.7.1.2

      Installing 'ClientDependency 1.7.1.2'.

      Successfully installed 'ClientDependency 1.7.1.2'.

      Adding 'ClientDependency 1.7.1.2' to New_App.

      Successfully added 'ClientDependency 1.7.1.2' to New_App.

       

      PM> install-package ClientDependency-Mvc -Version 1.7.0.4

      Attempting to resolve dependency 'ClientDependency (≥ 1.7.0.4)'.

      Installing 'ClientDependency-Mvc 1.7.0.4'.

      Successfully installed 'ClientDependency-Mvc 1.7.0.4'.

      Adding 'ClientDependency-Mvc 1.7.0.4' to New_App.

      Successfully added 'ClientDependency-Mvc 1.7.0.4' to New_App.

    5. Right click Controllers, Click Add Controller, Add Controller Dialog will be displayed!!!

  • Stuart 11 posts 34 karma points
    Jan 21, 2015 @ 21:50
    Stuart
    0

    If you get an error aboout 'Too many items' when running locally then do the following to the web.config

    Change the original line in the web.config

     <clientDependencyconfigSource="config\ClientDependency.config"version="1">

    to  

     <clientDependencyconfigSource="config\ClientDependency.config">

     

    Should run then!

     

  • amrut 2 posts 22 karma points
    Feb 09, 2015 @ 06:23
    amrut
    0

    Thank you this solution worked for me.

Please Sign in or register to post replies

Write your reply to:

Draft