Vb.net 获取InvalidOperationException

Vb.net 获取InvalidOperationException,vb.net,invalidoperationexception,Vb.net,Invalidoperationexception,该程序运行良好。当我停止并重新启动它时,它出现了以下异常: System.InvalidOperationException occurred HResult=-2146233079 Message=An error occurred creating the form. See Exception.InnerException for details. The error is: Operation is not allowed when the object is closed. Sour

该程序运行良好。当我停止并重新启动它时,它出现了以下异常:

System.InvalidOperationException occurred
HResult=-2146233079
Message=An error occurred creating the form. See Exception.InnerException for details.  The error is: Operation is not allowed when the object is closed.
Source=WorkFlowConfig
堆栈跟踪:

   at WorkFlowConfig.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
InnerException: System.Runtime.InteropServices.COMException
   ErrorCode=-2146824584
   HelpLink=C:\Windows\HELP\ADO270.CHM#1240653
   HResult=-2146824584
   Message=Operation is not allowed when the object is closed.
   Source=ADODB.Recordset
   StackTrace:
        at ADODB._Recordset.Close()
        at WorkFlowConfig.frm_WF_Config.ListWF() in C:\MBS Integration\WorkFlow\frm_WF_Config.vb:line 392
        at WorkFlowConfig.frm_WF_Config.chkActiveHistoryOnly_CheckedChanged(Object sender, EventArgs e) in C:\MBS Integration\WorkFlow\frm_WF_Config.vb:line 341
        at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
        at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
        at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
        at WorkFlowConfig.frm_WF_Config.InitializeComponent() in C:\MBS Integration\WorkFlow\frm_WF_Config.Designer.vb:line 889
        at WorkFlowConfig.frm_WF_Config..ctor()
   InnerException:
此消息发生在Application.Designer.vb的以下行:

    Protected Overrides Sub OnCreateMainForm()
        Me.MainForm = Global.WorkFlowConfig.frm_WF_Config
    End Sub

我从哪里开始寻找

启动过程中的某些内容正在导致chkActiveHistoryOnly_CheckedChanged事件,该事件会执行其他不合法的操作是的,看起来它与关闭的“数据库连接”对象、无效的ADO参数可能、连接字符串有关。。。谷歌2146824584没有-你会看到很多与你看到的错误相关的信息