tags:

views:

48

answers:

2

some time before i use ms sql but in new project i use mysql so when i run our application then i have a error that

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 'MySql' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 4:  using System.Text;
Line 5:  using System.Web;
Line 6:  `using MySql.Data.MySqlClient;    this namespace is not worked 
Line 7:  using System.Data.SqlTypes;

so how can i solve this problem

A: 

Are you sure you have connector libraries?

Lukasz Lysik
Let me know if it works. Thanks.
Lukasz Lysik
A: 

You need to add a reference to the MySQL.Data.dll (if you don't have it, you can download it by following the link posted by Lukasz)

Thomas Levesque