asp.net website host in ftp server assembly missing error

170 views Asked by At

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)‌​; 
1

There are 1 answers

1
Peter On

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