4
Answers

Dll cant Compile.

Ask a question
Vasu Gadhiya

Vasu Gadhiya

11y
866
1
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)