MySQL Forums
Forum List  »  Quality Assurance

Connection must be valid and open
Posted by: kzm85 kzm85
Date: September 29, 2008 09:13PM

Message:Connection must be valid and open

URL:http://localhost/stockagent/zh-hk/default.aspx

StackTrace:
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at StockAgent.MySql.mySqlLayer.ExecuteDataSet(MySqlConnection mcon, String storeprocedure, Int32 flag, String[] paraName, String[] paraValue) in d:\Project\StockAgent\StockAgent\App_Code\mySqlLayer.cs:line 129
at zh_cn_downLoadl.fillData(String[] spvalue, GridView gvControl) in d:\Project\StockAgent\StockAgent\UserControl\downLoadl.ascx.cs:line 256
at zh_cn_downLoadl.InitialLoadData(String[] spvalue) in d:\Project\StockAgent\StockAgent\UserControl\downLoadl.ascx.cs:line 179
at zh_cn_downLoadl.Page_Load(Object sender, EventArgs e) in d:\Project\StockAgent\StockAgent\UserControl\downLoadl.ascx.cs:line 80
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


I am sure the code is no bug,but this error appear without day,what wrong? help me....

Is the connector's bug? I am used 5.1.6.0 connector



Edited 1 time(s). Last edit at 09/29/2008 09:16PM by kzm85 kzm85.

Options: ReplyQuote


Subject
Views
Written By
Posted
Connection must be valid and open
3256
September 29, 2008 09:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.