Vs2010实例失败,跪求解答
夏梦111 2015-04-17 11:35:46 实例失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.InvalidOperationException: 实例失败。
源错误:
行 31: string constr = ConfigurationManager.ConnectionStrings["constr"].ToString();
行 32: SqlConnection mycon = new SqlConnection(constr);
行 33: mycon.Open();
行 34: string sqlSelect = "select Pwd from loginTable where userName='"+TextBox1.Text.Trim()+"'";
行 35: SqlCommand mycom = new SqlCommand(sqlSelect, mycon);
源文件: E:\新建文件夹\Login.aspx.cs 行: 33