Bug #77566 Wrong Connector version in MySQL for Visual Studio
Submitted: 30 Jun 2015 13:12 Modified: 4 Dec 2015 21:56
Reporter: Luca Cavagnoli Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Visual Studio Integration Severity:S3 (Non-critical)
Version:1.4.3.0 OS:Windows (Windows 7 Enterprise)
Assigned to: Assigned Account CPU Architecture:Any
Tags: connector, Visual Studio

[30 Jun 2015 13:12] Luca Cavagnoli
Description:
MySQL for Visual Studio includes a Connector .NET version that does not match the one installed by MySQL Community Installer.

How to repeat:
Run MySQL Community Installer and install the following packages:

- MySQL Server 5.6.*
- MySQL for Visual Studio 2013 1.2.3
- MySQL Connector .NET 6.9.5

Open visual studio, try to generate an .edmx from database; or: rigt-click on an existing .edmx and select "Generate database from model".

The wizard will crash.

Workaround:

Copy the following files:
        MySql.Data.dll
        MySql.Data.Entity.EF6.dll
        MySql.Web.dll
    from:
        C:\Program Files (x86)\MySQL\Connector.NET 6.9\Assemblies\v4.5
    to:
        C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies
[2 Jul 2015 5:48] Chiranjeevi Battula
Hello Luca Cavagnoli,

Thank you for the bug report.
Verified this behavior on Visual Studio 2013 (C#.Net) with MySQL Connector/Net 6.9.5 and 6.9.6.

Thanks,
Chiranjeevi.
[2 Jul 2015 5:48] Chiranjeevi Battula
screenshot

Attachment: 77566.PNG (image/png, text), 50.61 KiB.

[13 Jul 2015 6:07] Chiranjeevi Battula
http://bugs.mysql.com/bug.php?id=77695 marked as duplicate of this one.
[14 Jul 2015 19:56] Javier TreviƱo
Hi Luca, this is actually a MySQL for Visual Studio bug rather than a MySQL Installer one.  Judging by the description you added, it looks like the MySQL for Visual Studio MSI is not registering correctly the Connector.NET DLLs in the GAC, but without more investigation I can't be certain.

I just changed the category of the bug.
Can you please answer these questions?

1. What version of MySQL for Visual Studio did you install?
2. What version of Connector.NET did you install using the MySQL Installer?
3. What product did you install first, Connector.NET or MySQL for Visual Studio?

Thanks.
[15 Jul 2015 3:23] Michael Cress
I disagree with the Severity rank on this issue. For those teams developing with or maintaining Entity First applications, this is a schedule block because there is no work-around.
[15 Jul 2015 3:24] Michael Cress
To clarify, the stated work-around did not work for me.
[15 Jul 2015 8:38] Luca Cavagnoli
@Javier:

1. What version of MySQL for Visual Studio did you install?

MySQL for Visual Studio 1.2.3

2. What version of Connector.NET did you install using the MySQL Installer?

Connector/NET 6.9.5

3. What product did you install first, Connector.NET or MySQL for Visual Studio?

I installed them together with MySQL Community Installer 1.4.3.0.
I don't remember wich one the installer installed first, though.

@Michael Cress:

Also, I forgot to mention that, in order for the wizards not to crash, the version of Connector .NET assemblies installed with Nuget in my project should also match the version of Connector .NET assemblies of MySQL Visual Studio Integration (the ones you manually copy in the workaround).
[4 Dec 2015 21:56] Luis Penunuri
Hi,

This is a duplicate of bug #74388 (http://bugs.mysql.com/bug.php?id=74388),
related to an error thrown when selecting "Generate database from model" in
an existing "edmx" model.

You can susbscribe to it to be notified when it is fixed.

Regards.