私は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をインポートします。 MSDNフォーラムから
ませ利用先生。それにmysql.data.cf.dllが見つかりません。 – Sagotharan