c# - MySqlClient ReplicationManager exception -


i set test project connect mysql database (in visual studio 2013 express, using c#). [this first time working sql.]

i got working; can connect local database. however, when copied connection code project, error

"the type initializer 'mysql.data.mysqlclient.replication.replicationmanager' threw exception."

my searches problem have turned solution of enabling "sql server debugging", option doesn't seem exist in express versions of visual studio.

how can fix error in visual studio express? (the project copied code made in vs2012, if matters.)

my code (works in test project, not in other project):

        mysqlconnection cn = new mysqlconnection();         cn.connectionstring = "server=127.0.0.1; userid=newuser1; password=mysql; " +             "database=pr2_db";         cn.open(); 

edit: code works if start program without debugging.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

Kivy: Swiping (Carousel & ScreenManager) -

jdbc - Not able to establish database connection in eclipse -