Can't add MySql to C# program (reference and "using" already added) -


i'm writing c# program in visual studio 2010 excel macro. i'm attempting connect program mysql database. when try build, errors following:

the type or namespace name 'mysql' not found (are missing using directive or assembly reference?)

the type or namespace name 'mysqlconnection' not found (are missing using directive or assembly reference?)

i have downloaded .net mysql connector , added visual studio reference mysql.data.dll, , have "using mysql.data.mysqlclient;" @ top of program. these 2 things seem hangups else on internet sees these errors.

why else getting these errors, , how can resolve them?

edit: also, when type using statement, ide not autocomplete mysql me; doesn't seem know what/where is.

apart using statement, shown above, errors when trying use mysqlconnection, e.g. below

public dictionary <string, mysqlconnection> m_envtocon;

i've encountered error , had explicitly remove connection name before devenv build.

  <remove name="connectionname" /> 

add above statement before connection add tag

  <connectionstrings>     <remove name="mysql" />     <add name="mysql" connectionstring="..." />     <remove name="mysqlconnection" />     <add name="mysqlconnection" connectionstring="..." />   </connectionstrings> 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -