Server Error in '/' Application.

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: CS0029: Cannot implicitly convert type 'MySql.Data.MySqlClient.MySqlConnection' to 'System.Data.SqlClient.SqlConnection'

Source Error:


Line 14:         {
Line 15:             Class1 cc = new Class1();
Line 16:             SqlConnection con = cc.mycon;
Line 17:             con.Open();
Line 18:             SqlDataAdapter da = new SqlDataAdapter("Select * from testimonial where isoservices='ISO 22000:2005 / HACCP'", con);

Source File: c:\inetpub\vhosts\qccertification.com\httpdocs\ISO-22000-2005-HACCP.aspx.cs    Line: 16





Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0