estou com problema para abrir a conexão com o mysql com a seguinte mensagem de erro (System.TypeInitializationException: 'The type initializer for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception.')
segue trecho da conexão
string connStr = String.Format("Server = " + server + ";User Id = " + user + ";Password = " + password + ";Persist Security Info = True;Database = " + database + ";");
MySQLconn = new MySqlConnection(connStr);
MySQLconn.Open();