你的sqlconnection有没有new一下?
例如:
SqlConnection sqlconnection1=new SqlConnection(".....");