i am building a webapplication in Web Developer 2005 Express. I'm using C#. I build an application who connects to a MySQL database. To do this, I use the .net mysql connection from http://mysql.com . I made a reference in the "Add Reference" screen. When I test the application on my pc it connects fine to the database. However, when I upload the application to my Host I get the following:
Compiler Error Message: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)
Line 9: using System.Web.UI.WebControls.WebParts;
Line 10: using System.Web.UI.HtmlControls;
Line 11: using MySql;
What am I doing wrong. I copied all files (including the bin folder) to the server, but he keeps giving that error. The strange thing is, that if I look in the reference tab in the website properties, he doesn't display any references. When I add the MySQL reference, he doesn't add it there. It works on my PC however.
(I connect to a MySQL server on the Host. So it can't be the MySQL Database I guess).
View Complete Post