I am receiving an error in my application and i can not figure out how to resolve it. Here is the code:
SqlConnection myConnection = new SqlConnection(Confi
The issue is on this line:
myCommand2.Parameters.Add("@TaskName", SqlDbType.NVarChar, 50).Value = t;
You are passing the task object in instead of the name of the task.