Exception:在“System.Windows.Markup.StaticResourceHolder”上提供值时引发了异常。Can't Assign to Known Type attributes

报错信息

XamlParseException: 在“System.Windows.Markup.StaticResourceHolder”上提供值时引发了异常。
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/Quicker;component/app.xaml
StackTrace:
   在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   在 Quicker.View.PopupWindow.InitializeComponent()
   在 Quicker.View.PopupWindow..ctor(IKernel container, DataService dataService, ITinyMessengerHub hub, PanelState panelState, AppServer appServer, ActiveWindowHook activeWindowWatcher, ProfileManager profileManager, UsageCounter usageCounter, PopupState popupState, IconManager iconManager, ActionEditMgr actionEditMgr, RunningActionMgr runningActionMgr, SQLDataMgr sqlDataMgr, ProfileSwitcher profileSwitcher, AutoRunService autoRunService, FloatButtonAndPanelManager floatButtonAndPanelManager, TextFloatPanelMgr textFloatPanelMgr, PushClient pushClient)
   在 DynamicInjectorae0ffbdcb1614b36ab8e892bc921150c(Object[] )
   在 Ninject.Activation.Context.ResolveInternal(Object scope)
   在 Ninject.Activation.Context.Resolve()
   在 Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings, Boolean filterImplicitBindings)
   在 Quicker.App.bIRqge2wmb()
   在 Quicker.App.<StartupApplicationAsync>d__16.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.App.<ApplicationStart>d__14.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)

InvalidOperationException: Can't Assign to Known Type attributes
StackTrace:
   在 System.Windows.Baml2006.WpfKnownType.CheckFrozen()
   在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.Create_BamlType_Stretch(Boolean isBamlType, Boolean useV3Rules)
   在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.GetKnownXamlType(Type type)
   在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.GetXamlType(Type type)
   在 System.Xaml.XamlMember.get_Type()
   在 System.Windows.Baml2006.Baml2006Reader.Process_PropertyWithConverter()
   在 System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
   在 System.Windows.Baml2006.Baml2006Reader.ReadObject(KeyRecord record)
   在 System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
   在 System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
   在 System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   在 System.Windows.DeferredResourceReference.GetValue(BaseValueSourceInternal valueSource)
   在 System.Windows.DeferredAppResourceReference.GetValue(BaseValueSourceInternal valueSource)
   在 System.Windows.StaticResourceExtension.TryProvideValueImpl(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
   在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-01-07 22:00
Quicker版本
版本 反馈次数