我是SmartDeviceProject的新手。所以當我嘗試連接MySQL到我的項目,MissingManifestResourceException通過在Connection.open在下面的代碼?通過SmartDeviceProject MissingManifestResourceException?
string connectionString = "server=192.168.1.100;database=mcubic;User Name=mcubic;[email protected]$;";
string query = "select b.Outlet_Master_Name from mcs_user_outlet a,outlet_master b where a.Mcs_User_Outlet_User_Id=3 and a.Mcs_User_Outlet_Outlet_Id = b.Outlet_Master_Id";
MySqlConnection connection = new MySqlConnection(connectionString);
MySqlCommand command = new MySqlCommand(query, connection);
connection.Open();
MySqlDataReader Reader = command.ExecuteReader();
while (Reader.Read())
{
comboBox1.Items.Add(Reader[0].ToString());
}
connection.Close();
我該如何解決這個問題。我爲這個項目導入了MySql.Data.CF.dll。
沒有用的,先生。沒有找到mysql.data.cf.dll。 – Sagotharan