Copied to clipboard

Flag this post as spam?

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


  • Tom Bruce 122 posts 506 karma points
    Mar 14, 2021 @ 22:07
    Tom Bruce
    0

    Upgrade from Umbraco 7.15 to 8

    Hi everyone, I have upgraded my Umbraco 7.15 site to Umbraco 8, but when I try a build, I receive the following error;

    namespace name 'UmbracoApplicationBase' could not be found (are you missing a using directive or an assembly reference?)

    I completed the upgrade by using the following commands within package manager console (Nuget) ‘Update-Package UmbracoCms

    I selected ‘L’ when asked if I wanted to overwrite the webconfig.

    The last message from package manage was Umbraco successfully upgraded to 8.

    I have the following within Views > Web.config

    <pages pageBaseType="System.Web.Mvc.WebViewPage">
            <namespaces>
                <add namespace="System.Web.Mvc" />
                <add namespace="System.Web.Mvc.Ajax" />
                <add namespace="System.Web.Mvc.Html" />
                <add namespace="System.Web.Routing" />
                <add namespace="Umbraco.Web" />
                <add namespace="Umbraco.Core" />
                <add namespace="Umbraco.Core.Models" />
                <add namespace="Umbraco.Core.Models.PublishedContent" />
                <add namespace="Umbraco.Web.Mvc" />
                <add namespace="Examine" />
                <add namespace="Umbraco.Web.PublishedModels" />
            </namespaces>
        </pages></system.web.webPages.razor><system.web>
    

    Any help much appreciated as I am losing the will to live….

  • Mov3nforward 117 posts 319 karma points
    Mar 15, 2021 @ 02:20
    Mov3nforward
    0

    I don't think upgrading from 7 to 8 is a good idea. Upgrading from 7.x to 7.x or 8.x to 8.x is a nightmare. I can't imagine a case where upgrading from 7.x to 8 will work.

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Mar 15, 2021 @ 14:43
    Søren Kottal
    0

    Hi Tom

    Sounds like you upgraded the nuget package in your project. This is not supported.

    Did you follow the documentation? https://our.umbraco.com/Documentation/Getting-Started/Setup/Upgrading/migrating-to-v8

    I would also suggest reading this https://www.proworks.com/blog/archive/how-to-upgrade-umbraco-version-7-to-version-8

  • Tom Bruce 122 posts 506 karma points
    Mar 15, 2021 @ 15:04
    Tom Bruce
    0

    Thanks S0ren,

    Steps so far...

    Step 1. My Umbraco 7.15 site, I upgraded the .NET framework to 4.8 and updated the package by using nuget

    Step 2. Updated Umbraco by using Update-Package UmbracoCms by using nuget.

    Step 3. Sorting out bugs.... i.e. Umbraco documentation it’s clear that we shouldn’t use n Singleton accessors like: ApplicationContext.Current or UmbracoContext.Current ect

  • Brendan Rice 538 posts 1100 karma points
    Mar 15, 2021 @ 16:49
    Brendan Rice
    1

    Upgrading from 7 > is doable it just takes time and patience until you get familiar with the process:

    Here's the steps I follow

    1. Upgrade to 7.15
    2. Take backup of DB and code (git branch)
    3. Install the Pre-migration health checks
    4. Run the checks to make sure everything passes
    5. Install v8 into a new solution
    6. Follow these steps
  • Marc Goodson 2141 posts 14344 karma points MVP 8x c-trib
    Mar 15, 2021 @ 17:39
    Marc Goodson
    1

    Also if you are going > 8.5 worth installing the Proworks migration helping package - more on their blog here:

    https://www.proworks.com/blog/archive/how-to-upgrade-umbraco-version-7-to-version-8

    Great blogpost here about what's changed in V8

    https://skrift.io/issues/components-composers-are-everywhere/

    If you are new to working with dependency injection and Umbraco, these pages are really useful: https://our.umbraco.com/Documentation/Reference/Using-Ioc/ https://our.umbraco.com/Documentation/Implementation/Services/

    and then for IPublishedContent template changes GetPropertyValue becomes just Value, https://our.umbraco.com/Documentation/Reference/Querying/IPublishedContent/Properties/#custom-properties

    and everything else is just renamed slight enough to be the same but to confuse you at the same time :-(

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft