Exception:“TranslationService”的类型初始值设定项引发异常。已添加了具有相同键的项。

报错信息

TypeInitializationException: “TranslationService”的类型初始值设定项引发异常。
--TypeName: TranslationService
StackTrace:
   在 DynamicClass.TranslationService.TranslateToEnglish(String chineseText)
   在 DynamicClass.IconifyWindow.<OnSearchClick>d__1a.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

ArgumentException: 已添加了具有相同键的项。
--Message: 已添加了具有相同键的项。
StackTrace:
   在 System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   在 DynamicClass.TranslationService..cctor()

 

解决方法

暂无解决方案。

相关信息
1 查看
20天19小时前
Quicker版本
版本 反馈次数
1.44.22 1