搜索
热搜: 活动 交友 discuz
查看: 2327|回复: 5
收起左侧

[已发布] 线程异常

[复制链接]
  • TA的每日心情
    开心
    2014-1-2 07:45
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2013-12-10 21:32:58 | 显示全部楼层 |阅读模式
    错误信息
    -----------------------------------------------------
    System.ArgumentException: Controls created on one thread cannot be parented to a control on a different thread.
       at System.Windows.Forms.Control.ControlCollection.Add(Control value)
       at System.Windows.Forms.WindowsFormsUtils.ReadOnlyControlCollection.AddInternal(Control value)
       at System.Windows.Forms.ToolStripControlHost.SyncControlParent()
       at System.Windows.Forms.ToolStripControlHost.OnParentChanged(ToolStrip oldParent, ToolStrip newParent)
       at System.Windows.Forms.ToolStripItem.set_ParentInternal(ToolStrip value)
       at System.Windows.Forms.ToolStrip.SetDisplayedItems()
       at System.Windows.Forms.StatusStrip.SetDisplayedItems()
       at System.Windows.Forms.ToolStrip.OnLayout(LayoutEventArgs e)
       at System.Windows.Forms.StatusStrip.OnLayout(LayoutEventArgs levent)
       at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
       at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
       at System.Windows.Forms.ToolStrip.DoLayoutIfHandleCreated(ToolStripItemEventArgs e)
       at System.Windows.Forms.ToolStrip.OnItemVisibleChanged(ToolStripItemEventArgs e, Boolean performLayout)
       at System.Windows.Forms.ToolStripItem.OnVisibleChanged(EventArgs e)
       at System.Windows.Forms.ToolStripItem.SetVisibleCore(Boolean visible)
       at System.Windows.Forms.ToolStripControlHost.SetVisibleCore(Boolean visible)
       at System.Windows.Forms.ToolStripItem.set_Visible(Boolean value)
       at ..(Object ,  ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Dialogs\MainForm.cs:line 16777215
       at ..( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA.Api\Workers\TaskManager.cs:line 125
       at ...(Object ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA.Api\Workers\TaskManager.cs:line 16777215
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

    环境信息
    -----------------------------------------------------
    操作系统版本:Microsoft Windows NT 5.1.2600 Service Pack 3
    程序运行目录:C:\Documents and Settings\Administrator\桌面\12306订票助手.NET

    模块信息
    -----------------------------------------------------
    [001]. mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
    [002]. 12306订票助手, Version=1.6.2.421, Culture=neutral, PublicKeyToken=063375134da4cdc3 , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\12306订票助手.exe
    [003]. System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
    [004]. System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
    [005]. System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
    [006]. System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
    [007]. System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
    [008]. System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
    [009]. {a074b7b4-c799-4b2e-a3fd-97f967f3c488}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=3e56350693f7355e ,
    [010]. Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\Newtonsoft.Json.dll
    [011]. System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
    [012]. System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll
    [013]. System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
    [014]. System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
    [015]. System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
    [016]. BetterListViewExpress, Version=3.8.2.0, Culture=neutral, PublicKeyToken=e6c91a3add447be2 , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\BetterListViewExpress.dll
    [017]. System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
    [018]. SimpleUpdater, Version=2.3.0.0, Culture=neutral, PublicKeyToken=8bf54bd6729f490c , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\SimpleUpdater.dll
    [019]. fyfnjrok, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null ,
    [020]. ?, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null ,  不可用信息 (动态程序集)
    [021]. Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?入住

    x
  • TA的每日心情
    奋斗
    2019-1-5 01:55
  • 签到天数: 138 天

    [LV.7]常住居民III

    发表于 2013-12-10 23:29:17 | 显示全部楼层
    请升级到最新版。

    该用户从未签到

    发表于 2013-12-16 14:34:49 | 显示全部楼层
    错误信息
    -----------------------------------------------------
    System.ArgumentOutOfRangeException: Value of '2014-1-3 0:00:00' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.
    Parameter name: Value
       at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
       at System.Windows.Forms.Binding.SetPropValue(Object value)
       at System.Windows.Forms.Binding.PushData(Boolean force)
       at System.Windows.Forms.Binding.UpdateIsBinding()
       at System.Windows.Forms.Binding.CheckBinding()
       at System.Windows.Forms.Binding.SetListManager(BindingManagerBase bindingManagerBase)
       at System.Windows.Forms.ListManagerBindingsCollection.AddCore(Binding dataBinding)
       at System.Windows.Forms.BindingsCollection.Add(Binding binding)
       at System.Windows.Forms.BindingContext.UpdateBinding(BindingContext newBindingContext, Binding binding)
       at System.Windows.Forms.Control.UpdateBindings()
       at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
       at System.Windows.Forms.Control.OnParentBindingContextChanged(EventArgs e)
       at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e)
       at System.Windows.Forms.ContainerControl.OnCreateControl()
       at System.Windows.Forms.UserControl.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
       at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
       at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
       at System.Windows.Forms.TabPage.set_Visible(Boolean value)
       at System.Windows.Forms.TabControl.UpdateTabSelection(Boolean updateFocus)
       at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e)
       at System.Windows.Forms.TabControl.WmSelChange()
       at System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value)
       at ..() in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Controls\Account\UserMainPageContent.cs:line 216
       at ..( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Controls\Account\UserMainPageContent.cs:line 159
       at ...( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Controls\Account\UserTab.cs:line 16777215
       at ..[](IEnumerable`1 , Action`1 ) in e:\Develop\Private\iFish\FSLib\ArrayExtract.cs:line 108
       at ..( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Controls\Account\UserTab.cs:line 32
       at ...ctor( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Controls\Account\UserTab.cs:line 48
       at ..( ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Dialogs\MainForm.cs:line 51
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at ..(Object , EventArgs ) in e:\Develop\Private\iFishWinForm\12306TOBA\TOBA\TOBA\UI\Dialogs\MainForm.cs:line 51
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at ..WndProc(Message& ) in e:\Develop\Private\iFish\FSLib.Windows\Forms\FunctionalForm.cs:line 665
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    环境信息
    -----------------------------------------------------
    操作系统版本:Microsoft Windows NT 5.1.2600 Service Pack 3
    程序运行目录:C:\Documents and Settings\Administrator\桌面\12306订票助手.NET


    模块信息
    -----------------------------------------------------
    [001]. mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
    [002]. 12306订票助手, Version=1.5.1.293, Culture=neutral, PublicKeyToken=063375134da4cdc3 , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\12306订票助手.exe
    [003]. System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
    [004]. System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
    [005]. System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
    [006]. System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
    [007]. System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
    [008]. System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
    [009]. {0d52cba9-836a-4898-ad4b-ad4ca870e2ff}, Version=0.0.0.0, Culture=neutral, PublicKeyToken=3e56350693f7355e ,
    [010]. TOBA.API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=063375134da4cdc3 , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\TOBA.API.dll
    [011]. Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\Newtonsoft.Json.dll
    [012]. System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
    [013]. System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll
    [014]. System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
    [015]. System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
    [016]. System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 , C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
    [017]. SimpleUpdater, Version=2.2.1.0, Culture=neutral, PublicKeyToken=8bf54bd6729f490c , C:\Documents and Settings\Administrator\桌面\12306订票助手.NET\SimpleUpdater.dll
    [018]. Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a , C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll
    [019]. h5iortkc, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null ,

      我的是最新版本 一打开就会这样。。。。

    该用户从未签到

    发表于 2013-12-16 14:35:30 | 显示全部楼层
    然后这样登陆是没有 订票的那个界面的
  • TA的每日心情
    奋斗
    2019-1-5 01:55
  • 签到天数: 138 天

    [LV.7]常住居民III

    发表于 2013-12-16 15:17:14 | 显示全部楼层
    你的系统时间是不是不对?

    该用户从未签到

    发表于 2013-12-19 14:09:45 | 显示全部楼层
    1.下载 System.Core.dll  这个脚本。下载地址:3w.jb51.net/dll/System.Core.dll.html
    2.先将其解压然后根据您windows的版本情况选择X86/X64,X86为32位电脑,X64为64位电脑。
    3.根据软件情况选择dll的版本: 版本号以5.0开头的或含有 nt 一般是windows2000的文件。 版本号以5.1开头的或含有 xp、xpsp1、xpsp2、xpsp3 信息的一般是windowsXP的文件。
    版本号以6.0开头的或含有 longhorn、vista 信息的一般是windowsVista的文件。 版本号以6.1开头的或含有 win7 信息的一般是windows7的文件。 如果不是windows的dll文件,则需要灵活查看版本号、描述、网友提供的信息、以及相关dll的版本号去判断。
    4.直接拷贝该文件到系统目录里:
       1、Windows 95/98/Me系统,将System.Core.dll复制到C:\Windows\System目录下。
       2、Windows NT/2000系统,将System.Core.dll复制到C:\WINNT\System32目录下。
       3、Windows XP/WIN7/Vista系统,将System.Core.dll复制到C:\Windows\System32目录下。
            4、系统是64位的请将文件复制到C:\Windows\SysWOW64目录.
    5.打开"开始-运行-输入regsvr32 System.Core.dll",回车即可解决。




    您需要登录后才可以回帖 登录 | 入住

    本版积分规则

    申请友链| Archiver| 手机版| 鱼·后花园

    GMT+8, 2024-11-23 18:57 , Processed in 0.021269 second(s), 16 queries , Redis On.

    Powered by Discuz! X3.4

    © 2005-2024 鱼·后花园

    快速回复 返回顶部 返回列表