Im trying to connect mysql database through Xamarin android. My codes are like this below:
con = new MySqlConnection("xxxxxxxxxxxx");
con.Open();//gives error at this line
It gives me this error below:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception. occurred
When I check C# Interactive, it shows this;
con.Open();
(1,17): error CS0103: 'con' does not exist in the current context