问题
ETS不启动或显示与下面类似的其它错误信息:
2023-04-03 14:48:02,961 [1] ERROR System.Windows.Application - System.ArgumentNullException: Der Wert darf nicht NULL sein.Parametername: keybei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)bei System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)bei Knx.Ets.ObjectModel.Operations.GroupRanges.DeleteGroupRangeOperation..ctor(IEnumerable`1 ranges, Action`1 progress)bei Knx.Ets.ViewModel.Application.Workspace.OperationFactory.CreateDeleteOperation(IEnumerable`1 items, Action`1 callback)bei Knx.Ets.ViewModel.ContextMenu.ContextMenuViewModel.<>c__DisplayClass163_0.<OnDelete>b__0(Action`1 action)bei Knx.Ets.ViewModel.Application.Wizards.GenericWizardPageVM..ctor(String wizardId, Func`2 getOperations, Func`2 getSubtitle, WizardPageAttachment attachment)bei Knx.Ets.ViewModel.Application.Wizards.GenericWizardViewModel..ctor(IList`1 objects)bei Knx.Ets.ViewModel.IocModule.<>c.<Load>b__0_39(Object[] objects)bei Knx.Ets.ViewModel.Tools.WizardDialogService.GetWizard(Object[] values)bei Knx.Ets.ViewModel.Tools.WizardDialogService.ShowGeneric(Boolean withDelay, Object[] values)bei Knx.Ets.ViewModel.Service.ProgressDialogService.ShowDialog(WizardSubtype wizardSubtype, Func`2 getOperationsWithCallback, Action`1 whenFinishedCallback, String localizedDescription, Boolean useDelay)bei Knx.Ets.ViewModel.ContextMenu.ContextMenuViewModel.OnDelete()
原因
工作区配置文件已损坏,ETS无法对其进行处理。
解决方法
- 关闭 ETS (如果它已打开)。
- 在 工程存储文件夹 中找到项目的文件夹。
- 记下项目的文件夹名称(即 P-ABCD,其中 ABCD 是项目 ID)。
- 浏览到文件夹“%localappdata%\KNX\ETS6\Workspaces”(将“ ”中的内容复制到 Windows 文件资源管理器)。
- 找到并删除文件“P-ABCD.workspace”,其中 P-ABCD 是项目的 ID。
- 重新启动 ETS