Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all 1447 articles
Browse latest View live

ASP.Net with 6.7.4: Unable to find the requested .Net Framework Data Provider. It may not be installed. (3 replies)

$
0
0
With regard to ASP.net webforms with .Net 4.0:

I presume the answer is that MySQL Connector .Net 6.7.4 has a bug, probably known, but here is what I am seeing.

With 6.6.5, everything worked flawlessly.

I uninstalled 6.6.5 on my local machine and on both servers. Okay, one of the servers crashed and was rebuilt with 6.7.4 installed, which is how I found out about the new version. I then upgraded to the new version on my workstation and on the other server.

I am now seeing in all forms (running local and running from either server) the error message in the subject.

I am using Visual Studio 2012 Update 3
I do not need the Visual Studio integration piece, so I installed the connector by itself without the Windows installer. I create my own connection strings and do not use the Visual Studio piece.

I cannot seem to get rid of this error.

How do I solve the bug? Is there a solution besides reverting to 6.6.5?

Windows Installer: Custom paths for components (1 reply)

$
0
0
If I install software components on their own, I can specify the destination folder using the custom install, however if I install the component using the new Windows installer, then I do not see obviously how to specify a custom path for the components. Oracle seems to install components to the default path.

How can I override that?

Windows Installer: Visual Studio Component (6 replies)

$
0
0
Two related questions.

1. Is it possible to install the Visual Studio Integration component using its own installer? If so how and where to download?

1A. I presume that I can specify a custom path if using the manual installer, if present?

2. I tried to download/install using the new Windows installer and received a 404 (file not found) on the Visual Studio application component. Downloaded about a half hour to hour ago now.

MySQL.Data 6.7.4 not published to GAC (1 reply)

$
0
0
Looking through the installation log from the MySql Installer after installing MySql for Visual Studio 1.02 and Connector/Net 6.7.4 I see that the only assembly for the connector that is published to the GAC is MySql.Data.CF. MySQL.Data,dll and MySQL.Data.Entity.dll are not published.

Is this as intended? I am getting runtime errors connecting to my MySQL database that are complaining about not being able to load assembly "MySql.Data, Version=6.6.5.0 ...". V6.6.5 was the previous version of C/Net that was installed. Somewhere the new version has not been registered, it appears.

MySql.Data.MySqlClient was registered as a DBProviderFactory in machine.config and I was able to access the database to set up the Entity Data Model in EF5.

In addition I added the C/Net MySql.Data and MySql.Data.Entity 6.7.4 packages to the project with NuGet, but the result was the same.

Incidentally, I also noticed in the installation log when the MySql for VS was installing it published to the GAC 'MySql.Web, version "6.6.5.0" ...' which must surely be a bug.

Any thoughts as to whether this is another installer bug or something else I'm missing?

Thanks,
Hugh

How To: Using spatial data with Entity Framework and Connector/Net (no replies)

MySql Connector/NET 6.7.4 GA has been released (no replies)

$
0
0
MySQL Connector/Net 6.7.4, a new version of the all-managed .NET driver for MySQL has been released. This is the GA, is feature complete. It is recommended for production environments. It is appropriate for use with MySQL server versions 5.0-5.7.

It is now available in source and binary form from http://dev.mysql.com/downloads/connector/net/#downloads and mirror sites (note that not all mirror sites may be up to date at this point-if you can't find this version on some mirror, please try again later or choose another download site.)

The 6.7 version of MySQL Connector/Net brings the following new features:
- WinRT Connector.
- Load Balancing support.
- Entity Framework 5.0 support.
- Memcached support for Innodb Memcached plugin.
- This version also splits the product in two: from now on, starting version 6.7, Connector/NET will include only the former Connector/NET ADO.NET driver, Entity Framework and ASP.NET providers (Core libraries of MySql.Data, MySql.Data.Entity & MySql.Web). While all the former product Visual Studio integration (Design support, Intellisense, Debugger) are available as part of MySql Windows Installer under the name "MySql for Visual Studio".

WinRT Connector
-------------------------------------------
Now you can write MySql data access apps in Windows Runtime (aka Store Apps) using the familiar API of Connector/NET for .NET.

Load Balancing Support
-------------------------------------------
Now you can setup a Replication or Cluster configuration in the backend, and Connector/NET will balance the load of queries among all servers making up the backend topology.

Entity Framework 5.0
-------------------------------------------
Connector/NET is now compatible with EF 5, including special features of EF 5 like spatial types.

Memcached
-------------------------------------------
Just setup Innodb memcached plugin and use Connector/NET new APIs to establish a client to MySql 5.6 server's memcached daemon.

Bug fixes included in this release:
- Fix for Entity Framework when inserts data having Identity columns (Oracle bug #16494585).
- Fix for Connector/NET cannot read data from a MySql table using UTF-16/UTF-32 (MySql bug #69169, Oracle bug #16776818).
- Fix for Malformed query in Entity Framework when eager loading due to multiple projections (MySql bug #67183, Oracle bug #16872852).
- Fix for database objects with 'dbo' prefix when using automatic migrations in Entity Framework 5.0 (Oracle bug #16909439).
- Fix for bug IIS application pool reset worker process causes website to crash (Oracle bug #16909237, Mysql Bug #67665).
- Fix for bug Error in LINQ to Entities query when using Distinct().Count() (MySql Bug #68513, Oracle bug #16950146).
- Fix for occasionally return no data when socket connection is slow, interrupted or delayed (MySql bug #69039, Oracle bug #16950212).
- Fix for ConstraintException when filling a datatable (MySql bug #65065, Oracle bug #16952323).
- Fix for Data Provider is not found after uninstalling Mysql for visual studio (Oracle bug #16973456).
- Fix for nested sql generated for LINQ to Entities query with Take and Order by (MySql bug #65723, Oracle bug #16973939).


The documentation is available at http://dev.mysql.com/doc/refman/5.7/en/connector-net.html

Enjoy and thanks for the support!

--
Fernando Gonzalez Sanchez | Software Engineer |
Oracle MySQL Windows Experience Team, Connector/NET
Guadalajara | Jalisco | Mexico

MySql for Visual Studio 1.0.2 GA has been released (no replies)

$
0
0
MySQL for Visual Studio is a new product including all of the Visual Studio integration previously available as part of Connector/Net. The product is now released as GA and is appropriate for use in production environments. It is compatible with MySQL Server versions 5.0-5.7 and Visual Studio versions 2008-2012.

It is now available as part of MySql Installer for Windows (http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html).

The 1.0 version of MySQL for Visual Studio brings the following new features:
- Workbench Launching
- MySql Utilities Launching.
- Table Script Generation.
- The functionality of the core libraries (ADO.NET, EF, ASP.NET providers is available as the separate download of Connector/NET 6.7).

Features available from previous versions:
- Server explorer connections
- Design time support
- Entity Framework designer (Database First & Model First)
- Stored Routines Debugger
- Intellisense
- ASP.NET Website Configuration Tool



Workbench Launching
-------------------------------------------
A context menu for connections in Server Explorer allows to launch Workbench (if Workbench is installed).

MySql Utilities Launching
-------------------------------------------
A context menu for connections in Server Explorer allows to launch a prompt for MySql Utilities (if MySql Utilities is installed).

Table Script Generation
-------------------------------------------
A context menu for tables is available in Server Explorer to generate the script for a table.


The full list of bug fixes for "MySql for Visual Studio" 1.0 follows:
1.0.2
- Fix for Documentation not found (Oracle bug #6915712).
- Fix for intellisense completion, now Views are displayed together with Tables calling intellisense (Oracle Bug #16881451).
- Fix for parser syntax, now the parser supports the clause ALTER TABLE table_name RENAME {INDEX|KEY} old_index_name TO new_index_name introduced in MySql 5.7. (Oracle Bug #16881481)
- Fix for Debugging a routine produces an error when binary log is enabled (Oracle bug #16941181).
- Fix for WorkItem 552: MySql for Visual Studio Installer fails when installing against VS2008.
- Fix for bug Vs plugin installer is not working (Oracle bug #16973339).
- Fix for bug Release notes file has no notes about (Oracle bug #16973326).


1.0.1
- Fix for "README" file and "Release Notes" file referes to connector 6.6.
- Fix for Parser fails to recognizes a complex view (Oracle bug #16815427).
- Fix for Altering table's primary key in designer not working (Oracle bug #16866053).
- Fix for Web configuration tool is not shown on mysql for visual studio (Oracle bug # 16902696).
- Fix for Model first is not supported using mysql for visual studio (Oracle bug # 16902743).
- Fix for Mysql for vs should not be installed with connector/net version < 6.7 (Oracle bug # 16902774).
- Fix for Resolve assemblies dependencies between MySql.Data (Connector/Net version) and MySql.Data (WI # 460).
- Fix for Showing an exception related to resources (Oracle bug #16903039).


1.0.0
- Added new option on Connection Node for Server Explorer Window in Visual Studio to give the user the option when WB is Installed to open the MySQL Utilities console window.
- Added new option on Connection Node for Server Explorer Window in Visual Studio to give the user the option when WB is Installed to open the SQL Editor Window using the same connection.
- Implemented a menu option to generate table script from server explorer context menu (Tracker task 433).
- Fix for bug If using repair option, then vs2010 doesnt allow to connect to db (Oracle bug #16238242).
- Fix for bug "Can't change the name for a view in view editor" (Oracle bug #13805346).
- Fix for Debugger cannot debug stored procedures with a main begin labeled and declare statements included (Oracle bug #16002371).
- Fix for bug If using repair option at Installer, then vs2010 doesnt allow to connect to db (Oracle bug #16238242).
- Fix for "Cannot change the name for a Foreign Key in table designer" (Oracle bug #16238068).
- Fix for error when trying to set primary key for a column with same name as mysql keyword (like INT) in table designer
(Oracle bug #16238102).
- Fix for databases not displayed in connect dialog for mysql script when correcting credentials, after entering a bad password
(Oracle bug #13805337).
- Fix for Debugger fails trying to debug a stored routine in a MySql server hosted in linux without lower_case_table_names option enabled
(MySql bug #69065, Oracle bug #16770384).
- Fix for Debugger issue, Values through watch tab shouldn't allow to be modified (Oracle bug #14545448).
- Fix for Visual Studio Mysql editor colors cannot be customized (Oracle bug #16453324, MySql bug #67994).



The documentation is available as part of Connector/NET at http://dev.mysql.com/doc/refman/5.7/en/connector-net.html

Enjoy and thanks for the support!

--
Fernando Gonzalez Sanchez | Software Engineer |
Oracle MySQL Windows Experience Team, Connector/NET
Guadalajara | Jalisco | Mexico

C# MySqlAdapter (1 reply)

$
0
0
I don't fully understand this class. I know that it can "Fill" a dataset in c# and "Update" the corresponding table in the database with changed information.

But what are the DeleteCommand, InsertCommand, UpdateCommand, and SelectCommand properties for?

Can I use this class to delete, insert, update, and select straight my code to the database? Or are these properties meant to be used to update the database from my dataset?

I'm confused...

Mysql Membership Provider (Mysql.Web.dll) For .Net Connector 6.7.4.0 (2 replies)

$
0
0
I can't seem to find the Mysql.Web.dll for .Net 4.5 framework in:

"C:\Program Files (x86)\MySQL\MySQL Connector Net 6.7.4\Assemblies\v4.5"

I can see the dll for .Net 4.0 in

"C:\Program Files (x86)\MySQL\MySQL Connector Net 6.7.4\Assemblies\v4.0"

Any suggestions?

MySQL exits when creating Connection VS12 Pro (2 replies)

$
0
0
I have downloaded and installed the Connector and associated software. When choosing Tools > Connect To Database and then selecting the MySQL Database source. The Add Connection dialog then shows. However as soon as I type into any of the fields, the window exits.

The Other sources are fine, its only just the MySQL one. Have rebooted the machine and have also downloaded the latest VS2012 latest update.

Does anyone have any idea on this?

Cheers

Ian

Does community version support viewing of generated sql in Visual Studio 2010 IntelliTrace dialog? (1 reply)

$
0
0
Or only Enterprise edition support this? Or this feature isn't supported at all?

I mean when used together with Entity Framework, of course.

Thanks for any response.

Unable to update EF Model (no replies)

$
0
0
Generated the model from DB.
On attempt to update the model getting the error: "The item with the same key has already been added".

What could be the problem here?

VS 2012 Prof
MySQL 5.5.31 - Remi repository
.NET Connector - 6.7.4

MySQL /net connector not uninstalling (5 replies)

$
0
0
I recently did a restore on my computer and stupidly did a dirty copy-paste file restore, resulting in the MySql /net connector to be corrupt, and the code I write always runs into a fatal error. I cannot uninstall/modify/change the install, the installer ends prematurely every time, even when I re-download the installer. How could I manually delete the connector files and perform a clean install?

I face an error in my .net application Fatal error encountered during command execution. (5 replies)

$
0
0
hi all. I face an error in my .net application Fatal error encountered during command execution. But this probelm doesn't not occur frequently.but after testing so much time i found noting.but i found this error in my client log file.i tried to increase my wait time out of mysql but the problem remains same as per my client.but this things does not happend in our network or our end.please help me i am out of option now.i attach the error log if any one have an ans for this type of problem please help me. _____________________________________________________________13/07/2013 09:50:31 | [Exception Message:Fatal error encountered during command execution.] | [Inner Exceotion:MySql.Data.MySqlClient.MySqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)] |=================================================================================

Refreshing a DataGridView with live data (1 reply)

$
0
0
I have a C#.NET DataGridView in a form that displays rows for editing. The user leaves the form up and goes away for a few. When they come back, I would like to have the form updated with any data changed by another user. I would also like to have data entry to the grid to trigger the same update.

I have tried using the binding source object, calling <DataGridView object ref>.ResetBindings(); and .Refresh(); I have tried re-fetching the data into the DataSource object and re-associating its table to the DataGridView object.

I am missing something. A link to an example of how-to would be much appreciated.

Problem with IsCurrentRowDirty on datagridview object not setting in time for RowValidating event (no replies)

$
0
0
I am using the IsCurrentRowDirty property of a DataGridView object to tell when the row was changed. Problem is, it sometimes is not set when my code gets there. I have created a 100ms delay and then it works fine.

Has anyone else ran into this?

this assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded (2 replies)

$
0
0
Hi,

I'm trying to use powershell scripts to insert data into a mysql DB.

By including this line :
[void][System.Reflection.Assembly]::LoadFrom("C:\VReport\MySQL.Data.dll")

it works fine on windows 2012 servers, but not at all on windows 2008 R2 servers, including a brand new one. I tried installing .net 4 and 4.5 as well as tried with and without installing the connector.

Any idea ?

MYSQL replication not replicating any data when using the connector (1 reply)

$
0
0
I have setup MYSQL replication, Master-Slave, and this seems to be working fine. But, when I use the connector 6.7.4, no data is being replicated at all. This includes INSERTS/DELETES/UPDATES..etc.

If I use the ODBC driver 5.1, this seems to be replicating data fine. I have also tested replication by using phpMyAdmin, and this seems to be fine too.

Do I need to add anything to the connection string when using the connector to allow replication? Or does anyone know what I need to do to get it working?

Insert Function for SmartWarehouse (1 reply)

$
0
0
Hello there,,
i wanna make some project, make SmartWH using RFID + VB6 + MySQL.
ok what i want to do is, when somebody take some item on shelf, it will goin through tag-reader and recorded to DB as 'on hand' and after that item pass to end gate (another tag-reader), it would be set on DB as 'cash out', because sometimes they might be canceled to pick the item through the end gate for some reason (out of cash, change their mind, etc). so what is the solution of that algorithm?

open for any solution, suggest or even criticism.
Thnx Beforehand.

Non-ASCII Connection String Issues (no replies)

$
0
0
Hi there,

I apologize if this is a stupid question but I couldn't seem to find an answer for this. I'm trying to use MySql Connector to connect to a database that has Chinese characters in it but it doesn't appear to work due to decoding issues. Here's the code I'm using:

MySqlConnection conn = new MySqlConnection(@"server=localhost;database=数据库;uid=root;pwd=password;"); // Also tried adding "charset=utf8;" to connection string without success
conn.Open();

And I get this error:

MySqlException: Unknown database '???'
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n
at MySql.Data.MySqlClient.NativeDriver.AuthenticateNew(Boolean reset)\r\n
at MySql.Data.MySqlClient.NativeDriver.Authenticate(Boolean reset)\r\n
at MySql.Data.MySqlClient.NativeDriver.Open()\r\n
at MySql.Data.MySqlClient.Driver.Open()\r\n
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)\r\n
at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()\r\n
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()\r\n
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()\r\n
at MySql.Data.MySqlClient.MySqlPool.GetConnection()\r\n
at MySql.Data.MySqlClient.MySqlConnection.Open()\r\n
at APITest01.Program.Main(String[] args)

It appears to me as if the server is decoding the string incorrectly because the error message returned changes the database name to '???' instead of '数据库'.

We can work around this issue by connecting at the server level (without specifying database name) and then issue a "USE 数据库;" command which works. This implies to me that the initial connection itself needs to be in ASCII, but the session thereafter can be Unicode. Unfortunately this does not help if the username or password is using Chinese characters as well since we need to include that in the connection string.

Does anyone know if I am missing something simple here or if this is a real bug with MySQL Connector. Any help is appreciated. Thanks!

P.S. I chose some random Chinese characters to test with so if they mean something bad, I apologize. :P
Viewing all 1447 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>