项目预览时错误,蒙了,啥情况?我怎样排查呢
## Overview
- Version: 10.0.2.0
- Exception: `System.ArgumentException`
- DateTime: 2024/7/19 8:50:13
- Email:
- Tags: #CN
## Exception
```json
{
"ClassName": "System.ArgumentException",
"Message": "An item with the same key has already been added. Key: 392d0d05-0a72-4e93-8b5f-34326e2d172c",
"Data": {
"$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib",
"System.Object": null
},
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](TSource[] source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at mt.GenerateShareCommandMetadata()
at mu.cdb(PublishType a, TaskInfo b, PublishSettingsViewModel c)
at mu.GenerateAllPagesAsync(PublishType publishType, TaskInfo taskInfo, PublishSettingsViewModel settings)
at mu.GenerateAllPagesAsync(PublishType publishType, TaskInfo taskInfo, PublishSettingsViewModel settings)
at Forguncy.Views.RibbonView.BrowserHomeExecutedWithProgressbarAsync(IBrowser browser, TaskInfo taskInfo)
at Forguncy.Views.RibbonView.<>c__DisplayClass412_0.<<BrowserHomeExecutedWithProgressbarAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at WPFBase.Common.TaskInfoHelper.CreateAThreadCrossedAutoClosedWindowAsync(TaskInfo taskInfo, Window owner, Func`1 action)
at Forguncy.Views.RibbonView.BrowserHomeExecutedWithProgressbarAsync(IBrowser browser, TaskInfo taskInfo)
at Forguncy.Views.RibbonView.BrowserHome_Click(Object sender, RoutedEventArgs routedEventArgs)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2147024809,
"Source": "System.Private.CoreLib",
"WatsonBuckets": null,
"ParamName": null
}
```
## EventLog
- 08:50:04 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->RibbonView->RibbonGroupBox:在浏览器中打开->MenuItem:Forguncy.Views.RunMenuItemDisplay->MenuItem:Google Chrome->Google Chrome
- 08:50:03 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->RibbonView->RibbonGroupBox:在浏览器中打开
- 08:50:02 `MouseL`:Window:命令窗口->Button:确定->确定
- 08:50:01 `MouseL`:CommandItemMenuItem:禁用此命令->禁用此命令
- 08:49:58 `MouseR`:Window:命令窗口->MyTreeViewItem:Forguncy.HelpForm.Commands.NormalCommandItemViewModel
- 08:49:58 `MouseL`:Window:命令窗口->MyTreeViewItem:Forguncy.HelpForm.Commands.NormalCommandItemViewModel
- 08:49:26 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->Tab:单元格设置->编辑命令...
- 08:49:25 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->Spread[27,47]:R2 ,C22,Page=D_04004_21_主任务管理,CellType=Forguncy.ButtonCellType
- 08:47:51 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->RibbonView->RibbonGroupBox:在浏览器中打开->MenuItem:Forguncy.Views.RunMenuItemDisplay->MenuItem:Google Chrome->Google Chrome
- 08:47:50 `MouseL`:Window:恒立_生产管理.fgcc - 活字格 (10.0.2.0)->RibbonView->RibbonGroupBox:在浏览器中打开
## ActionList
- SetCommandAction
|