Exception Error:
private void Form1_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source=LINLINPC\\SQLEXPRESS;Initial Catalog=POS;Integrated Security=True";
conn.Open();
MessageBox.Show("Connection");
conn.Close();
}
I got this error(The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.)