Search code examples
vb.netnamespacesvisual-studio-2019mysql.data

MySql.Data.MySqlClient shows confusing error


I'm using VS2019 and today I opened my project to continue working but a strange error occured that I really don't understand. The MySql.Data.MySqlClient namespace shows this:

mysql namespace

and every mysql commands shows this error:

error list

but when I start the debugging it's working fine i don't know whats causing this since I'm not very knowledgeable with programming. How do I get rid of this?


Solution

  • From your scenario it's bit unclear what exactly problem at your end. You could try couple of hacks though

    1. Clean solution and rebuild your project

    If that does not resolve your issue, try to remove dll reference "MySql.Data.MySqlClient" from reference and referring to latest documentation from Microsoft, import correct namespace again. Hope this helps you.