It show me the error that System.InvalidCastException: Specified cast is not valid. How to remove the error.....
try
{
conn.Open();
reader = cmd.ExecuteReader();
catch(Exception ex)
Console.WriteLine(ex.ToString());
}