I keep getting System.ArgumentException which says keyword not supported "port" however i connected my .web to the assigned port but this error keep showing.
Any idea roughly where went wrong?
Red text is where the error falls
using (SqlConnection dbConn = new SqlConnection(DB_CONNECTION))
public static int ExecSQL(string sql, params object[] list)
{
List<String> escParams = new List<String>();
foreach (object o in list)
{
escParams.Add(EscQuote(o.ToString()));
}
string escSQL = String.Format(sql, escParams.ToArray());
int rowsAffected = 0;
using (SqlConnection dbConn = new SqlConnection(DB_CONNECTION))
using (SqlCommand dbCmd = dbConn.CreateCommand())
{
try
{
dbConn.Open();
dbCmd.CommandText = escSQL;
rowsAffected = dbCmd.ExecuteNonQuery();
}
catch (System.Exception ex)
{
DB_Message = ex.Message;
rowsAffected = -1;
}
}
return rowsAffected;
}