I have some code written that is attempting to connect to a mysql db. I have installed this. I have added a reference which is MySql.Data.CF.dll in the project. The project compiles with no complaints.
When I execute this...
string conn_str = ConfigurationManager.ConnectionStrings["MySQLServer"].ConnectionString;
DataSet m_Dst = new DataSet();
DataTable All_Table = new DataTable();
try
{
MySqlCommand cmd = new MySqlCommand(m_SQL, new MySqlConnection(conn_str));
cmd.CommandType = CommandType.Text;
cmd.Connection.Open();
MySqlDataAdapter MyDa = new MySqlDataAdapter(cmd);
MyDa.Fill(m_Dst);
if (m_Dst.Tables.Count > 0)
All_Table = m_Dst.Tables[0];
}
catch (Exception ex)
{
string s = ex.Message;
}
I get an exception as follows:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MySql.Data.MySqlClient.Properties.Resources.resources" was correctly embedded or linked into assembly "MySql.Data.CF" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Does anyone know what I am missing or have done wrong to prevent this connection?