[A]MySql.Data.MySqlClient.MySqlConnection cannot be cast to [B]MySql.Data.MySqlClient.MySqlConnection

前端 未结 3 1783
你的背包
你的背包 2021-01-05 09:35

I am getting this strange inexplicable error when I uploaded my application to a server for testing. From what I studied, it seems to be caused by conflicting MySql.Data, th

3条回答
  •  执念已碎
    2021-01-05 10:08

    I got the same problem but years later!

    My server has installed in gac the MySql Connector 6.4.6 version, but I'm working with the 6.8.3 version, I was getting the "cannot be cast error". I fixed it by adding the following section to the .config file

    
        
          
          
    
          
          
        
    
    

提交回复
热议问题