You could press Ctrl->Alt-E and make sure that 'break when an exception is thrown' is checked for 'common language runtime exceptions'
Or, put a try catch block around the line of code conn.Open()
e.g.
try
{
SqlConnection conn = new SqlConnection("Data Source= 192.168.0.104,1433;Network Library=DBMSSOCN;Initial Catalog=food;");
conn.Open()
}
catch (SqlException ex)
{
Console.WriteLine(ex.Message);
}
Now you can debug and see exactly what the error message is.
Basically, "The invocation of the constructor on type..." exception is just saying it encountered an error within your form construct, it's not giving you the detail you need to solve the underlying problem.
Edit: Could there be a firewall blocking the remote connection?
http://technet.microsoft.com/en-us/library/cc646023.aspx[
^]