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

Connection must be valid and open.

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

异常详细信息: System.InvalidOperationException: Connection must be valid and open.

源错误:


行 26:         {
行 27:             //集团新闻
行 28:             ds_jtxw = OP_kl_news.Select_Where("", " kl_news.hots='1' and kl_news.type='6' order by kl_news.id desc limit 5");
行 29:             RP_JTXW.DataSource = ds_jtxw;
行 30:             RP_JTXW.DataBind();

源文件: d:\phpStudy\WWW\Default.aspx.cs    行: 28

堆栈跟踪:


[InvalidOperationException: Connection must be valid and open.]
   SqlDBConn.MySQlHelper.Query(String strSql) in E:\KaiLi_Group\SqlDBConn\MySQLHelper.cs:94
   Operation.OP_kl_news.Select_Where(String strTop, String where) in E:\KaiLi_Group\Operation\OP_kl_news.cs:169
   _Default.Page_Load(Object sender, EventArgs e) in d:\phpStudy\WWW\Default.aspx.cs:28
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34209