我的代码下面的部分是工作完全正常,直到我重新启动我的电脑,现在它给我ArgumentException
的错误是未处理的,出现此错误:的ArgumentException未处理
An unhandled exception of type 'System.ArgumentException' occurred in System.Data.dll
Additional information: Invalid value for key 'integrated security'
{
SqlConnection con = new SqlConnection(@"Data Source=M2192822\SHIFTREPORTS;Initial Catalog=ShiftReports;Integrated Security=ture");
SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) From [All of Production] where Tool ='" + MoldText.Text + "' and [Internal Part Number] ='" + IPNText.Text + "'", con);
DataTable dta = new DataTable();
sda.Fill(dta);
MessageBox.Show("Part or Mold Number is Incorrect");
}
if (dta.Rows[0][0].ToString() != "1")
true not ture .. – Ian