获取InvalidOperationException

时间:2014-10-15 20:46:08

标签: 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.
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

我从哪里开始看?

0 个答案:

没有答案