Copied to clipboard

Flag this post as spam?

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


  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    Trying to upgrade from 7.12 to 7.15.6...

    I'm getting this error:

    The type 'Umbraco.Web.UmbracoApplication' is ambiguous: it could come from assembly...\umbraco.dll ... or ... umbraco.web.dll

    The code that's throwing the error is on global.asax

    <%@ Application Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
    

    I understand the error, but i'm not sure how to fix it.

  • Brendan Rice 322 posts 533 karma points
    17 days ago
  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    Thanks @BrendanRice for your reply. Unfortunately the thread you linked to suffered from a different issue than mine. The solution for the thread you linked to was changing the Target .NET version from 4.7.1 to 4.7.2 My project is already targeting 4.7.2

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    1

    How did you go about the upgrade, what steps did you do?

  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    My old Umbraco 7.12 wasn't in visual studio...

    So I created a blank 4.7.2 .NET site in Visual Studio and copied all of the files from my Umbraco 7.12 site into that blank project.

    Then I ran nuget and installed 7.15.6

    Try to run the site in debug and I get the above error.

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    100

    Maybe something went wrong with the process of creating the VS solution?I've done the same thing before to get sites into VS.

    The steps I take are (from the top of my head)

    1. Create blank VS ASP.Net MVC porject
    2. nuget the same version as the old site:

      Install-Package UmbracoCms -Version 7.12.0

    3. Copy the files from the old site (excluding the Bin & Umbraco folders)
    4. Run the site to make sure it works
    5. I then upgrade using nuget to each major release making sure to check any breaking change in the changelog
  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    Thanks @BrendanRice. I'll give that a shot.

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    1

    Good luck, also take backups at stages in between each major release upgrade in case you find something broken.

  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    I did as you suggested. New blank .NET 4.7.2 project. Install Umbraco 7.12 Copy in everything from my 7.12 site (except bin and umbraco folders)

    I hit this error on the first debug...

    Could not load all types from "umbraco.DataLayer, Version=1.0.6795.23037, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Any idea?

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    1

    It looks like a web.config issue. If I remember correctly they removed MySql support in later versions of Umbraco and it seems like the web.config still references it.

    Instead of copying over the web.config try to keep the original and copy in the parts you need i.e. connection string , app settings.

  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    Thanks again @BrendanRice. I wondered about that when I copied it in. Boom. Ok. I've got 7.12 stood up. Time to stepwise upgrade. Thanks for your help Brendan!

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    1

    Glad to help. Shout if you get stuck.

  • bh 286 posts 970 karma points
    17 days ago
    bh
    0

    Well no build errors in 7.12, When it runs it takes to me to the login page for Umbraco. But, when I login it takes me right back to the login page.

    Here's the URL when I debug: http://localhost:54794/umbraco/AuthorizeUpgrade?redir=%2finstall%2f%3fredir%3dtrue%26url%3dhttp%253a%252f%252flocalhost%253a54794%252f#/AuthorizeUpgrade?redir=%2Finstall%2F%3Fredir%3Dtrue%26url%3Dhttp%253a%252f%252flocalhost%253a54794%252f

    It's an infinite loop.

    I've tried modifying the url to: http://localhost:54794/umbraco or http://localhost:54794/

    But both redirect to the AuthorizeUpgrade url above.

  • Brendan Rice 322 posts 533 karma points
    17 days ago
    Brendan Rice
    1

    Are you sure the connection string is correct?

    hmm maybe it's the umbracoConfigurationStatus. What does it say in the web.config app setting for this key?

  • bh 286 posts 970 karma points
    14 days ago
    bh
    0
    <add key="umbracoConfigurationStatus" value=""/>
    

    The connection string looks good. I switched it from a database on a SQL server to a local SQLCE database.

    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0"/>
    
  • bh 286 posts 970 karma points
    14 days ago
    bh
    0

    I tested changing it to

    <add key="umbracoConfigurationStatus" value="7.12"/>
    

    Same experience with the infinite loop on the login page.

  • bh 286 posts 970 karma points
    14 days ago
    bh
    1

    The connectionstring was good the SQLCE was bad. I recreated it and i'm good to go now (I think). Thanks for all your help!!!

  • Marc Goodson 1393 posts 9451 karma points MVP 5x c-trib
    17 days ago
    Marc Goodson
    1

    Hi bh

    In your fresh new Web. Config for 7.12 make sure your umbraco users membership provider entry is the same as in the Web. Config for the existing site... Particularly if you had a setting for uselegacyencoding that was previously set to true... Basically your fresh new web.config will be trying to validate your login password with a different hash to your existing site preventing you from logging in if that setting is different...

    Regards

    Marc

  • bh 286 posts 970 karma points
    14 days ago
    bh
    0

    I did have that issue at first. But, I did forgot password and reset my password. So that's not my issue now.

Please Sign in or register to post replies

Write your reply to:

Draft