-1

I am getting the following error message:

CS0246: The type or namespace name 'MySqlConnection' could not be found
(are you missing a using directive or an assembly reference?

I am using following code:

MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString)‌​; 
USER_NAME
  • 1,029
  • 1
  • 14
  • 33
Rajamohan Anguchamy
  • 1,726
  • 1
  • 17
  • 35
  • MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); – Rajamohan Anguchamy Jun 05 '12 at 06:46
  • It will be better if you add your code to the question. – Jainendra Jun 05 '12 at 06:47
  • MySql workbench 5.2, but didn't know which version is used in client side, because ftp server is not my server. it's client side server – Rajamohan Anguchamy Jun 05 '12 at 06:54
  • are you including the mysql binary in the websites bin directory? – Daniel Powell Jun 05 '12 at 06:56
  • yes i add mysql binary in my bin directory, it's working local machine but only error occurs after host client side – Rajamohan Anguchamy Jun 05 '12 at 06:59
  • for ftp file upload i use filezilla software – Rajamohan Anguchamy Jun 05 '12 at 07:03
  • can u help this problem, i am beginner of that asp.net development, – Rajamohan Anguchamy Jun 05 '12 at 07:03
  • Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 52: MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["Kidzania_conn"].ConnectionString); – Rajamohan Anguchamy Jun 05 '12 at 07:11

1 Answers1

0

You are probably missing the 'MySql' dlls in your output directory.

Peter
  • 27,590
  • 8
  • 64
  • 84