Vasu Gadhiya

Vasu Gadhiya

  • NA
  • 429
  • 102.8k

Dll cant Compile.

Aug 17 2013 10:14 AM
I Used Mysql Database in project.

for reference add i add from .net.

------------------------------------------------------
using System.IO;
using System.Configuration;

using MySql.Data.MySqlClient;

namespace adwebsite
{
    public partial class Photo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            string con = string.Format("Server=180.00.000.00;Uid=*******;Pwd=*******;Database=*******;");
}
    }
}
------------------------------------------------------

In Local its run Complete and it fetch complete data.

but when i upload in hosting server it occur Compilation Error.

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 14 : using MySql.Data.MySqlClient;



Answers (4)