When I try to open the connection an error occurred and say:
System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception.
This is the part of code:
MySqlConnection _Conn;
public void Conectar()
{
new I18N.West.CP1250();
string SC;
SC = "server = XXX; Port = 3306; database = XXX; user id = XXX; password = XXX; charset = utf8";
_Conn = new MySqlConnection(SC);
_Conn.Open();
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…