Copied to clipboard

Flag this post as spam?

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


  • Jerker Stigsson 63 posts 122 karma points
    Jul 11, 2016 @ 09:31
    Jerker Stigsson
    0

    Upgrade with nuget, umbraco.datalayer wants older MySql.Data version

    While upgrading with nuget you get an error that umbraco.datalayer is looking for mysql.data version 6.9.8. But nuget installs the latest MySql.Data version 6.9.9. I guess something has to be changed in umbraco.datalayer.

    Please, would appreciate I you would fix this quickest as possible!

    When using nuget to upgrade and I get this error message:

    Server Error in '/' Application.
    
    Could not load all types from "umbraco.DataLayer, Version=1.0.5948.18143, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
    . System.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=6.9.8.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.8.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.8.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.8.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.8.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)
    
  • Jerker Stigsson 63 posts 122 karma points
    Jul 11, 2016 @ 09:55
    Jerker Stigsson
    0

    I tried to upgrade to 7.4.2 and got the same problem. It also installs MySql.Data version 6.9.9. It requires version 6.9.8.

    Is there a work around?

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jul 11, 2016 @ 10:10
    Dennis Adolfi
    106

    Hi Jerker.

    I think this is related to this issue: http://issues.umbraco.org/issue/U4-7410

    Try adding the following to your web.config in the runtime section (not tested, just an idea):

    <dependentAssembly>
        <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.9.8.0" newVersion="6.9.9.0" />
    </dependentAssembly>
    
  • Jerker Stigsson 63 posts 122 karma points
    Jul 11, 2016 @ 12:11
    Jerker Stigsson
    0

    Tanks! It worked!

  • Dennis Adolfi 1082 posts 6446 karma points MVP 5x c-trib
    Jul 11, 2016 @ 12:15
    Dennis Adolfi
    0

    Great to hear Jerker. Glad it worked!

    Have a great day! :)

Please Sign in or register to post replies

Write your reply to:

Draft