We have moved to GitHub Issues
Created by Stief Dirckx 16 Nov 2015, 12:13:40 Updated by Sebastiaan Janssen 18 Nov 2015, 18:39:15
I upgraded a site from 6.2.5 to 7.3.1 using NuGet in Visual Studio. But when starting the site I got a YSOD saying the MySql.Data assembly wasn't the correct version.
NuGet installed MySql.Data version 6.9.8 but when starting the site the error says umbraco.DataLayer expects version 6.9.7. Changing the version in packages.config and rebuilding resolved the issue.
Any chance that you have a reference to 6.9.7 in the web.config either in the mysql provider or in the assembly redirects?
@sebastiaan Couldn't find any. Before the upgrade MySql.Data was version 6.6.5, it got upgraded to 6.9.8 during the Umbraco upgrade. We don't use MySql for our own coding.
In web.config there's one reference to the dll in the DbProviderFactories section (not version specific) but that's also coming from Umbraco.
Alright, that's exactly how it should be! I'll check what we build against and why it would be a problem (it should not be).
@Stief Did you actually upgrade to 6.9.8 yourself? We build against 6.9.7 and the nuget also will install 6.9.7.
@sebastiaan No, the only thing I did was Install-Package UmbracoCms.
I just tried it again installing Umbraco through NuGet in a new empty .NET 4.5 web application project and again MySql.Data 6.9.8 was automatically added. See attached output file.
Don't know if it makes a difference but I'm using VS 2013.
Same issue here with Umbraco 7.3.1 and VS 2015
Alright, could you check two more things for me please: In Visual Studio go to: Tools > Extensions and Updates > Installed > Tools
There you will find NuGet, I'm curious about the version you have installed.
The other question: what is the package source you use? nuget.org/api etc or is it api.nuget.org?
@sebastiaan My NuGet version is 2.8.50926.663 and the package source is https://www.nuget.org/api/v2/
@sebastiaan I just update VS and now I have NuGet version 2.8.60723.765. The same version of MySql.Data is still installed on a new project. But now it doesn't seem to cause an exception anymore. Installing the site and going to the backoffice all works fine.
Difference with my initial report is that it wasn't an Umbraco package upgrade but a clean install.
My coworker added this in the web.config to use MySql.Data 6.9.8 in our Umbraco project:
I just don't have a clue where 6.9.8 would come from. We specify 6.9.7 in our nuspec files and build against it. NuGet should NOT install it on it's own. Anyway, we'll just update it to 6.9.8 for 7.3.2 and then it'll be fine for another few months until they release 6.9.9.
Great, happy to hear this will be fixed in the next version! Here's a screenshot of the packages NuGet wants to install while installing the latest version of Umbraco.Core by the way.
It's not really a "fix", as this means: take 6.9.7 and only if the user upgrades to something lower than 7 on their own, allow it:
MySql.Data (≥ 6.9.7 && < 7.0.0)
Commit made by '''Sebastiaan Janssen''' on ''2015-11-18T19:39:10+01:00'' https://github.com/umbraco/Umbraco-CMS/commit/aca181b32ee3de35dd458ae7d511e0eda4bc3602
U4-7410 Version issue with MySql.Data after upgrade to 7.3.1.
Backwards Compatible: True
Affected versions: 7.3.1
Due in version: 7.3.2