Exception:序列不包含任何元素

报错信息 1
InvalidOperationException: 序列不包含任何元素
StackTrace:
   在 System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   在 DynamicClass.<<OnWindowCreated>b__1>d__a.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)

版本:1.43.6 2025-08-13 11:25 Microsoft Windows NT 10.0.22631.0