So, I have this bit of code, and it would seem I am getting an error on the fourth line. The error specifically is "The system cannot find the file specified". Where did I go wrong, and how can I fix this bug?
SqlConnection con = new SqlConnection(@"server=localhost;user id=root;database=localhost");
SqlDataAdapter sda = new SqlDataAdapter("Select Role from accounts Where Username='" + UserNameBox.Text + "' and Password='" + PasswordBox.Text +"'", con);
DataTable dt = new DataTable();
sda.Fill(dt);