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 19:     {
Line 20:         Class1 cc = new Class1();
Line 21:         SqlConnection con = cc.mycon;
Line 22:         con.Open();
Line 23:         MySqlCommand cmd = new MySqlCommand();

Source File: c:\inetpub\vhosts\iacert.com\httpdocs\onlinepayment.aspx.cs    Line: 21






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