Item has already been added. Key in dictionary: "read_only"...
Posted by: Serge Poitras
Date: October 11, 2004 10:13AM

Hello everyone,

I use ASP.NET C# to store some data in MySql Database (mysql-5.0.0a-alpha-win) and I use mysql-connector-net-1.0.0-beta.

But when I try to open my connection, I got this error :

Item has already been added. Key in dictionary: "read_only" Key being added: "read_only"

This is my code :

using MySql.Data.MySqlClient;

MySqlConnection con = new MySqlConnection ("logging=true;server=localhost;database=gestionb;uid=fff;pwd=sdfs;compress=true");

MySqlCommand cmd = new MySqlCommand("INSERT INTO tblCustomers (LoginName, LoginPassword, LoginCounter, LastLogin) VALUES ('" + txtNomUsager.Text +"','" + txtMotDePasse.Text + "',0, '" + System.DateTime.Now.ToString("yyyy-MM-dd") + "')", con);


Can you help me? I really appreciate.

Thanks very much.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.