My question is similar to this one but the crash happens later. I must interoperate an EF database-first model between SQL Server and MySQL. More specifical
I had a similar issue. After installing 'MySql.Data 6.9.9' and 'MySql.Data.Entity 6.9.9' Nuget packages, the wizard crashed after that screen. I attached a debugger to it and found it was caused by a null reference exception in MySql.Data.Entity.EF6.dll.
I figured it may not be the packages, since I already tried reinstalling them, so I figured it might be an issue with the MySQL install for Visual Studio conflicting with the MySQL EF6 dll. The solution for me was simply to reinstall the latest "MySQL for Visual Studio 1.2.6":
http://dev.mysql.com/downloads/windows/visualstudio/
Could be I had an older version (didn't think to check first, so I can't confirm).
I have no idea why this works but I went in to my NuGet Package Manager and removed the MySql.Data.Entity (also checked dependencies which removed MySql.Data). I went into my .edmx and ran the 'Update model from database...' and everything worked.
(Note: This also removed my entity framework so I had to add that back in using the NuGet Manager)
W...T...F?
Maybe others can confirm this...
For anyone who's still encountering this issue here are the versions that I had to install to get it working:
MySQL for Visual Studio: 2.0.5 (note that at the time of posting the latest General Availability release is 1.2.9 - you'll need to go to the Development Releases tab to get version 2.0.5 - https://dev.mysql.com/downloads/windows/visualstudio/)
MySQL Connector/NET: 6.9.11 (https://downloads.mysql.com/archives/c-net/)
MySQL.Data NuGet package: 6.9.11 (Install-Package MySql.Data -Version 6.9.11)
MySQL.Data.Entity NuGet package: 6.9.11 (Install-Package MySql.Data.Entity -Version 6.9.11)
(Note that I didn't have to adjust the config file.)
Hope it helps.
I fixed this problem by following the steps below (note that im using vs2015 and .net 4.5)
1) Uninstall all previous mysql connectors that you have
2) Remove all mySQL references through NuGet packages
3) Download mysql connector v6.8.8
4) Once this is downloaded, go to your project and add as reference the newly installed dll files (located in the installation path, typically C:\Program Files (x86)\MySQL\MySQL Connector Net 6.8.8\Assemblies\v4.5)
5) Go to your NuGet packages and add MySql.Data (Version 6.8) and MySql.Data.Entity (Version 6.8).
6) Build your solution and no more crash :)
Hope this helps you out
Well I can tell you that connector 8.0.xxx and all of the 8.0.xxx dll's that MySQL has put out for MySql Server 8 are a complete bust.
There has been a major bug out https://bugs.mysql.com/bug.php?id=91030&thanks=3¬ify=195 for over a year now.
If your trying to work with MySql 8.0 many of the connectors and libraries will give you an error....
"The provider did not return a ProviderManifestToken string."
It is a testament to the absolutely sub zero level of visual studio support, documentation, testing and basic development skill applied in the mysql dll's connector and documentation that I have spent the last 40 hrs of my waking life trying to put together a working model to get my application to connect with MySql 8.0.16 and to have a working entity framework wizard. At this point I am almost wishing I developed it using SQL Server.
I am using a variant of ASP.NET Identity 2.0 and this is what I would get back when trying to log in
"The provider did not return a ProviderManifestToken string."
Anyway here is what I got to work for me.
This is something I got to work with Server 8.0 on Windows 10 that does a connection and allows log in with ASP.NET Identity 2.0 and will at least run the Data Entity Wizard to completion.
Install Connector / Net 6.10.7
DLL's
c:..\EntityFramework.6.2.0\lib\net45\EntityFramework.dll
C:..\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll
C:..\MySql.Data.6.10.7\v4.5.2\MySql.Data.dll
C:..\MySql.Data.6.10.7\v4.5.2\MySql.Data.Entity.EF6.dll
Web.Config
<configSections>
<section name="entityFramework"type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral,publicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="server=localhost;user id=<yourid>;password=<yourpassword>;persistsecurityinfo=True;database=<yourdbname>" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider>
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient"></remove>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
I hope this helps some people out there but I have a funny feeling your mileage may vary.
I change config file from
<entityFramework>.....</entityFramework>
to
<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6">.....</entityFramework>
and everything works
reference:https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html