我的代碼下面的部分是工作完全正常,直到我重新啓動我的電腦,現在它給我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