“/UI”应用程序中的服务器错误。

值不能为空。
参数名: connectionString

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.ArgumentNullException: 值不能为空。
参数名: connectionString

源错误: 


行 27:             userid = 0;
行 28:             string sqlString  = "select st_userid from ST_Users where st_name='"+st_name+"' and st_pass='"+st_pass+"'";
行 29:             object obj = SqlHelper.ExecuteScalar(st_SqlString,CommandType.Text, sqlString);
行 30:             if (obj != null && obj.ToString() != "")
行 31:             {

源文件: D:\bookshop\book\ST_BookBiz\ST_Auth.cs    行: 29 

堆栈跟踪: 


[ArgumentNullException: 值不能为空。
参数名: connectionString]
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +126
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText) +47
   STGROUP.ST_BookBiz.ST_Auth.ST_Login(String st_name, String st_pass, Int32& userid) in D:\bookshop\book\ST_BookBiz\ST_Auth.cs:29
   STGROUP.ST_Book.WebForm1.btnOK_Click(Object sender, EventArgs e) +85
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565