I have created a website that uses a MySQL database, but when i put it online, it doesn't work anymore. in my class connection.vb that i use for my connection to my database i get the following warning:
Namespace or type specified in the Imports 'MySql.Data.MySqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
and it says that the type mysqlconnection is not defined.
this is my code:
Imports Microsoft.VisualBasic
Imports MySql.Data.MySqlClient
Public Class connection
Public Shared cn As New MySqlConnection(ConfigurationManager.ConnectionStrings("cnDatabase").ConnectionString)
End Class
If i do the same imports statement in an other vb file such as e.g index.aspx.vb it gives me no error
Does anybody know what is wrong?
Thanks in advance.