VB.NET: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception

前端 未结 5 2022
逝去的感伤
逝去的感伤 2021-01-28 07:39

I don\'t know what may be wrong but that\'s what I get when I try to start the program:

The type initializer for MySql.Data.MySqlClient.Replication.ReplicationMana

5条回答
  •  灰色年华
    2021-01-28 08:10

    It could be a bad reference to the DLL. Make sure the dll is the right verson for the .net you're using. I also had the same issue and found that in the app.config file i was defining log4net configurations for my logger and that was the issue. i had to define a different config file for log4net so that mysql would work.

提交回复
热议问题