在系統更新的情況下出現
我在用系統的更新時出現
invalid argument='-1'不是'index 的有效值。
這個要怎麼處理呢?
需要做甚麼處理嗎?
如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。
************** 例外狀況文字 **************
System.ArgumentOutOfRangeException: InvalidArgument='-1' 不是 'index' 的有效值。
參數名稱: index
於 System.Windows.Forms.ListView.GetItemState(Int32 index, Int32 mask)
於 System.Windows.Forms.ListViewItem.get_StateImageIndex()
於 System.Windows.Forms.ListView.ListViewNativeItemCollection.Add(ListViewItem value)
於 System.Windows.Forms.ListView.ListViewItemCollection.Add(ListViewItem value)
於 Microsoft.Windows.ManagementUI.CombinedControls.EventHomeControl.UpdateLogSummaryUI()
************** 已載入的組件 **************
mscorlib
組件版本: 4.0.0.0
Win32 版本: 4.7.2600.0 built by: NET471REL1LAST
程式碼庫: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Microsoft.ManagementConsole
組件版本: 3.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.ManagementConsole/3.0.0.0__31bf3856ad364e35/Microsoft.ManagementConsole.dll
MMCFxCommon
組件版本: 3.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/assembly/GAC_MSIL/MMCFxCommon/3.0.0.0__31bf3856ad364e35/MMCFxCommon.dll
System
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Configuration
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
組件版本: 4.0.0.0
Win32 版本: 4.7.2612.0 built by: NET471REL1LAST_B
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Drawing
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
Accessibility
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
EventViewer
組件版本: 10.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/EventViewer/v4.0_10.0.0.0__31bf3856ad364e35/EventViewer.dll
MIGUIControls
組件版本: 1.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/MIGUIControls/v4.0_1.0.0.0__31bf3856ad364e35/MIGUIControls.dll
EventViewer.resources
組件版本: 10.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/EventViewer.resources/v4.0_10.0.0.0_zh-Hant_31bf3856ad364e35/EventViewer.resources.dll
MIGUIControls.resources
組件版本: 1.0.0.0
Win32 版本: 10.0.16299.15
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/MIGUIControls.resources/v4.0_1.0.0.0_zh-Hant_31bf3856ad364e35/MIGUIControls.resources.dll
System.ServiceProcess
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
System.Windows.Forms.resources
組件版本: 4.0.0.0
Win32 版本: 4.7.2556.0 built by: NET471REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Windows.Forms.resources.dll
System.Core
組件版本: 4.0.0.0
Win32 版本: 4.7.2600.0 built by: NET471REL1LAST
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
當 JIT 偵錯功能啟用後,會將所有未處理的例外狀況
傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。