Issue trying to create a Ado.Net Entity Model Visual Studio 2013 - mysql

I recently installed Visual Studio 2013 Professional, after install VS I installed MySql for VisualStudio version 1.2.6 that it is the latest release. The problem is when I tried to create a ADO .Net Entity Model I created the connection perfectly fine but when I press Next the window close it self and Visual Studio doesn't create the model.
Things that I checked:
I already have installed in my project the Entity Framework 6, MySQL.Data V6.9.8, MySQL.Data.Entity.EF6 v6.9.8 and MySql.Web v6.9.8.
In the Visual Studio Private Libraries there there is the three same libraries with the same version.
I checked other posts here and I really don't find the cause of my problem. I will be very grateful with any help.
Edit
I attached the process to another instance of Visual Studio and I got this:
'devenv.exe' (CLR v4.0.30319: ProjectExecutionContextDomain): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'
'devenv.exe' (CLR v4.0.30319: ProjectExecutionContextDomain): Unloaded 'C:\Users\Jose\AppData\Local\assembly\dl3\3C4YP8TT.W35\4414OC0M.0ZV\4aeb0621\323bbd39_5088d101\SignaSafePro.dll'
'devenv.exe' (CLR v4.0.30319: ProjectExecutionContextDomain): Unloaded 'C:\Users\Jose\AppData\Local\assembly\dl3\3C4YP8TT.W35\4414OC0M.0ZV\77badc31\29b0d95d_4088d101\EntityFramework.SqlServer.dll'
'devenv.exe' (CLR v4.0.30319: ProjectExecutionContextDomain): Unloaded 'C:\Users\Jose\AppData\Local\assembly\dl3\3C4YP8TT.W35\4414OC0M.0ZV\27b7b188\7ad46db4_4f88d101\MySql.Data.Entity.EF6.dll'
A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll
A first chance exception of type 'Microsoft.VisualStudio.TemplateWizard.WizardCancelledException' occurred in Microsoft.Data.Entity.Design.dll
The thread 0x908 has exited with code 259 (0x103).
I also uninstall and install all again, the libraries references are exactly the same, because I'm reference the libraries from the PrivateAssemblies folder.

Guys thank you very much, the problem was my mistake, I thought if I installed just MySQL for Visual Studio was enough but I didn't realized that the MySQL Connector is needed to:
MySQL Connector/Net Developer Guide
I hope it serve to guide for anyone other like me.

Requirements
Windows OS 7 or later.
Visual Studio 2010, 2012 or 2013 Professional or higher version.
Connector/Net 6.8.1 beta or higher version (MySQL Connector download link).
Additional download links (not required)
MySQL for Visual Studio (latest version)

Related

Issue with MySQL for Visual Studio / Visual Studio 2017 Datasource Wizard. Object reference not set to an instance of an object

Windows 10 Pro
Visual Studio 2017 Pro - 15.5.6
MySQL for Visual Studio - 1.2.7
MySQL Connector/NET - 6.10.6.0
I have encountered an issue with MySQL for Visual Studio.
When opening the 'Configuring a Data Source' dialog box, and adding a query, I can query the data fine.
When running the Test Query on the final screen, it fails with the following error:
When finishing the configuration without testing the query, and subsequently running the debug - an Object Reference exception is thrown as shown below:
I have tested this on other solutions that previously worked, but I am getting the same issue.
Any ideas guys?
Fixed it. For anyone who is interested - I did the following:
Uninstalled MySQL for Visual Studio
Uninstalled MySQL Connector/Net
Re-Installed Latest Version for MySQL for Visual Studio
Installed Previous Version for MySQL Connector/Net (6.9.11)
Downgraded MySQL.Data to 6.9.11
Downgraded MySQL.Web to 6.9.11
There appears to be an issue with the latest version of Connector/NET.
I have posted this as a MySQL Connector/NET Bug.
This also occurs in VS2015 using anything over MYSQL for VS 1.2.4 and Connector/NET 6.9.8. When VS2017 was first released it worked with MYSQL but it breaks after making any changes to the MYSQL components, e.g upgrading to the latest GA release. I cannot remember the original configuration for the working VS2017. I have tried all combinations of MYSQL for VS and connectors but nothing has worked. Eventually I went back to 2015 because 1.2.4 does not support 2017. (Tried on both Windows 10 Home and Professional)
I suppose my answer is downgrade to VS2015, which is not really a fix.

Visual Studio 2015 not installing Mysql.data in NuGet

UWP App not being able to work with MySql
I have made an app in UWP and instead of using SQLLite which seems to be the norm for Visual Studio 2015 I want to use MySql. I have already connected my Azure mysql database to Visual Studio via the 'Server Explorer'.
I'm using MySQL Workbench to update my tables within my connected database from Azure but I cannot actually write any code to access my tables as whenever I try to install MySql.data/.entity/etc in the NuGet Package Manager I get an error.
nuget error
I tried downloading the Mysql installer, the Mysql drivers for Ado and ODBC. I even tried downloading the MySql for Visual Studio option as I found out that Visual Studio is not compatibile with MySql and instead requires the MySql for Visual Studio download but I still have errors whenever I try to use MySql in my code as I need an assembly reference for it but I'm having no luck in being able to get one that doesn't error.
Does anybody have any idea how I could actually use MySql within Visual Studio 2015?
This is what I've been using as my guideline but I can't seem to get past the Mysql.data errors when installing.
http://web3.codeproject.com/Articles/1074242/Designig-your-Azure-MySQL-DB-with-a-UWP-Demo
I have seen a lot of people talk about this but there is no one straightforward fix (I've tried a lot of the fixes, one in particular being to use Vs13 to install Mysql in the Nuget package manager and then it should update within VS15 but as my app is a UWP VS13 does not actually load/read it so that idea isn't good to me, might help anyone else though)
Starting with 6.7, Connector/Net fully supports building Windows Store apps. But using Connector/Net RT is not by install the Nuget package, it just reference the MySql.Data.RT.dll assembly according to MySQL Connector/Net Developer Guide:
Using Connector/Net RT is easy. Simply create a Windows Store application using Visual Studio and then reference the MySql.Data.RT.dll assembly in your project. The code you write should be exactly the same as for normal Connector/Net (including using same namespace MySql.Data.MySqlClient) except for the differences listed above.
You may find this dll at C:\Program Files (x86)\MySQL\Connector.NET 6.79\Assemblies\RT if you have install the connector. You can also download the mysql-connector-net-6.7.9-noinstall.zip to find this file inside the folder. I also have a MySql UWP sample before and has the dll here. Right click your project and add reference for this it will work.
More details please reference this sample

MySQL Workbench not opening on Windows

I have downloaded the no-install portable version of Workbench. When I run the exe file (on Windows XP), nothing happens. Does it need some MySQL running? I think it's standalone, right? I have XAMPP for MySQL. Any dependency etc?
You need to install the following in order to run the current version of MySQL Workbench:
Microsoft .NET Framework 4.5.2
Microsoft Visual C++ 2019 Redistributable for Visual Studio 2019
See: dev.mysql.com/doc/workbench/en/wb-requirements-software.html
.
Update 2020:
Unfortunately this is still happening:
Download .NET 4.0 (My machine already had it.)
Download Visual C++
As the above solution states. Download the Mysql workbench
installer.
I still don't know why, it would allow me to install without checking for dependencies. I have become accustomed to this kind of behavior when I am installing any application and to not see it is annoying. I suppose I should leave this personal opinions out of my solution but I have had to install this multiple times and have comes across some kind of dependency issue.
What works for me (workbench 64bit) is that I installed Visual Studio 2015, 2017 and 2019
here is url:
https://support.microsoft.com/en-ph/help/2977003/the-latest-supported-visual-c-downloads
I installed both x86: vc_redist.x86.exe and x64: vc_redist.x64.exe
In my case, i tried all solutions but nothing worked.
My SO is windows 7 x64, with all the Redistributable Packages (x86,x64 / 2010,2013,2015)
The problem was that i tried to install the x64 workbench, but for some reason did not work (even my SO is x64).
so, the solution was download the x86 installer from : https://downloads.mysql.com/archives/workbench/
There are two prerequisite requirements need to install MySql Workbench as follows.
.Net Framework 4.0
Microsoft Visual C++ 2010
When .Net Framework 4.0 does not exist your computer installation will be corrupted. But if Microsoft Visual C++ 2010 does not exist your computer then you will continue the installation but cannot open MySql Workbench program. Sometimes you will need Microsoft Visual C++ 2013 instead of Microsoft Visual C++ 2010. So I recommend to install Microsoft Visual C++ 2013.
Microsoft Visual C++ 2013
In Windows 10 I browsed to %APPDATA%\MySQL\Workbench\ then deleted the workbench_user_data.dat file
Doing so lost my MySqlWorkbence settings but allowed MySqlWorkbence to open.
As per the current setup on June, 2017
Here is the downloadable link for Visual C++ 2015 Redistributable package : https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe
Hope this will help, who are struggling with the download link.
Note: This is with regards to MySQL Workbench 6.3.9
I have uninstalled 8.0.19 (64) and installed 8.0.18 (64 bit) and now it Opens.
it might be due to running of xampp or wampp server stop all services running and try to open mysql command line
I found I needed more than just the Visual C++ Redistributable 2015.
I also needed what's at this page. It's confusing because the titles make it ambiguous as to whether you're downloading the (very heavy) Visual Studio or just Visual C++. In this case it only upgrades Visual C++, and MySQL Workbench launched after this install.
You should have these two already installed in your system:
Microsoft Visual C++ 2015-2019 Redistributable
Microsoft .NET Framework 4.5.2
I did these two installations for MySQL Workbench 8.0 CE.
None of these suggestions worked for, however setting compatibility to Vista worked and now the workbench opens again.
2022 case:
My MySQL Workbench was working normally and from one moment it just didn't want to open anymore. I've lost almost half a day trying to fix it.
In folder %APPDATA%\MySQL\ I had to delete the whole folder Workbench,
instead of deleting just workbench_user_data.dat file (which didn't help)
Given that there's so little on this on the web, I'll provide my answer despite this thread being over two years old: it's probably a no-brainer but run Workbench as Administrator (doh!)

MySQL Data Source not appearing in Visual Studio

I just installed the ADO.NET connector from here http://dev.mysql.com/downloads/connector/net/
Yet MySQL doesn't appear as a data source like it should. I tried restarting Visual Studio. It doesn't fix my issue. Did I install the wrong connector?
EDIT: STill nothing. I'm using Visual Studio Express For Desktop. Do I need to pay for the Ultimate edition to use a MySQL Data Source?
I was having the same problem just now. I solved it by uninstalling the latest Connector/NET drivers (6.7.4) and then installed the older drivers (6.6.5) and it works.
I am using Visual Studio 2010. I uninstalled the latest ones because I figured they were somehow related to .NET4.5, which I'm not able to use.
Update #1:
Supposedly another way is to register the MySql Connector with various Visual Studio versions (2010/2012/2013/2015...) during installation: Go to Modify Product Features and select all the relevant Visual Studio versions.
Update #2 - Visual Studio 2019 Update:
When I installed MySQL Community with the ConnectorNET and VisualStudio Plugin options included - MySQL didn't show up as a data provider in Visual Studio.
The installer I used included the VS Plugin version 1.2.9, which had supposedly fixed installation issues from 1.2.8, but still didn't work for me...
The solution for me was to uninstall the Connector and the Visual Studio Plugin, download them as individual components, and then install them separately (not as part of the MySQLServer Installer). Install the Connector first, then VS plugin after.
Connector Download
VS Plugin Download
I found the solution here, Thanks to #LambertHeenan.
NOTE about Visual Studio Express
The OP asks whether MySQL is supported with Visual Studio Express (which as far as I can tell has been renamed to Visual Studio Community). In the past MySQL officially didn't support Visual Studio Express, as per #Paul's answer below, but they do officially support Visual Studio Community 2017 and 2019, according to this page.
Stuzor and hexcodes solution worked for me as well. However, if you do want the latest connector you have to download another product. From the oracle website:
Starting with version 6.7, Connector/Net will no longer include the MySQL for Visual Studio integration. That functionality is now available in a separate product called MySQL for Visual Studio available using the MySQL Installer for Windows (see http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html).
I found this on the MySQL support page for the Visual Studio connectors.
It appears that they do not support the MySQL to Visual Studio EXPRESS editions.
So to answer your question, yes you may need the ultimate version or professional edition - just not Express to be able to use MySQL with VS.
http://forums.mysql.com/read.php?38,546265,564533#msg-564533
From the MySql site.
Starting with version 6.7, Connector/Net will no longer include the MySQL for Visual Studio integration. That functionality is now available in a separate product called MySQL for Visual Studio available using the MySQL Installer for Windows (see http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html).
Tried everything but on Visual Studio 2015 Community edition I got it working when I installed MySQL for Visual Studio 1.2.4+ from
http://dev.mysql.com/downloads/windows/visualstudio/
At time of writing I could download 1.2.6 which worked for me.
Release notes of 1.2.4 which adds support for VS2015 can be found at http://forums.mysql.com/read.php?3,633391
The Connector 6.7.x does not integrate the native data provider anymore. For "Visual Studio 2012" or less, you have to install "MySQL for Visual Studio".
If you are using "Visual Studio 2013" there is no possibility to integrate MySQL for the "Entity Framework" yet.
A solution should be available on 10/2013!
Just struggled with Visutal Studio 2017 Community Edition - none of above options worked for me.
In my case what i had to do was:
Run MySQL Installer and install/upgrade: Connector/NET and MySQL for Visual Studio to current versions (8.0.17 and 1.2.8 at the time)
Run Visual Studio Installer > Visual Studio Community 2017 > Modify > Individual components > add .NET Framework Targeting Packs for 4.6.2, 4.7, 4.7.1 and 4.7.2
Reopen project and change project target platform to 4.7.2
Remove all MySQL-related nuGET packages and references
Install following nuGET packages: EntityFramework, MySql.Data.Entity, Mysql.Data.Entities
Upgrade following nuGET packages: MySql.Data, BouncyCastle nad Google.Protobuf (for some reason there is an update available just after install)
Uninstall later version and install mysql-connector 6.3.9 for visual studio 2010.
After installing add the dll files and restart the visual studio.
It works fine.
i install mysql for visual studio and the problem simply solved.although version of my visual studio is 2012!
I tried to install to VS 2015 using the Web installer. It seemed to work, but there was still no MySQL entry for Data Connections. I ended up going to http://dev.mysql.com/downloads/windows/visualstudio/, using it to uninstall then re-install the connector. Not it works as expected.
I have faced the same problem and i have installed mysql-connector-net-8.0.11. But in visual studio is not showing the db connector for mysql. Then I was installed the mysql-for-visualstudio-1.2.8 and run the visual studio. Its working fine.
Thank you!

cannot show Visual Studio Tools for Application editor in SSIS 2012

When I click on EDIT SCRIPT button for Script Task in SSIS 2012 package,
It does not open the Script editor rather it shows:
"cannot show Visual Studio Tools for Application editor"
Couls not load file or assembly
"Microsoft.visualstudio.tools.applications.core version=10.0.0.0 ...."
system can not find the file assembly specified.
I tried the solutions provided in the following links:
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/e5337b0c-7f70-4603-859e-fbc7d0cf1c37
SSIS Script Editor throws an exception
First of all go to Program and Features and check whether you have
"Microsoft Visual Studio Tools for Applications x86 Runtime 3.0"
installed. Most probably you will see this below
"Microsoft Visual Studio Tools for Applications x64 Runtime 3.0"
If it is not installed then you have the same issue that i have.
To resolved this error, I put in my SQL Server installation disk. Then go to redist->VSTA->runtime->x86 and then run VSTA_RT30.msi
The workaround mention in this link solved my issue:
https://connect.microsoft.com/SQLServer/feedback/details/776248/could-not-load-file-or-assembly-microsoft-visualstudio-tools-applications-core
Both the x86 and x64 runtimes must be installed, currently one or both the runtimes may be missing depending on the order of the SQL Server 2012 installation. As a workaround, check in Control Panel - Programs and determine which of the component is missing (it should be listed as Microsoft Visual Studio Tools for Applications x86 or x64 Runtime 3.0). You can install the component manually from your installation disk or download from the \redist\VSTA\runtime\ folder.
It is year 2021, when searching for the error, this is the top hit. The solution that worked for me with Visual Studio 2019 is to download and install "Visual Studio Tools for Applications 2019"
Link:
https://www.microsoft.com/en-us/download/details.aspx?id=58317&WT.mc_id=DX_MVP4025064
Interestingly, this is not provided as an option in Visual Studio installer. The above needs to be manually downloaded and installed.
By now, SQL Server 2012 Service Pack 1 is out. Try updating your release and after that, you might even consider putting the Cumulative Update 1 on top of it.
More about CU1: http://blogs.msdn.com/b/sqlreleaseservices/archive/2012/11/21/cumulative-update-1-for-sql-server-2012-service-pack-1.aspx
goto SQL server installer folder and install these msi files
redist/VSTA/designtime/VSTA_DT30msi
redist/VSTA/runtime/x64/VSTA_RT30.msi
redist/VSTA/runtime/x86/VSTA_RT30.msi