Exception:Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.The type initializer for 'HandyControl.Controls.TitleElement' threw an exception.Exception of type 'System.OutOfMemoryException' was thrown.

报错信息

XamlParseException: Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
--LineNumber: 0
--LinePosition: 0
--BaseUri: pack://application:,,,/HandyControl;component/Themes/Theme.xaml
StackTrace:
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at Quicker.View.UnhandledExceptionWindow.InitializeComponent()
   at Quicker.View.UnhandledExceptionWindow..ctor(Exception ex, Boolean canIgnore)
   at Quicker.App.<>c__DisplayClass27_0.U5FkOLuh9JJ()
   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)

TypeInitializationException: The type initializer for 'HandyControl.Controls.TitleElement' threw an exception.
--TypeName: HandyControl.Controls.TitleElement
StackTrace:
   at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(RuntimeType type)
   at System.Windows.DependencyProperty.FromName(String name, Type ownerType)
   at System.Windows.Baml2006.Baml2006Reader.WriteTypeConvertedInstance(Int16 converterId, Int32 dataByteSize)
   at System.Windows.Baml2006.Baml2006Reader.Process_PropertyCustom()
   at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
   at System.Windows.Baml2006.Baml2006Reader.ReadObject(KeyRecord record)
   at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
   at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
   at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
   at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   at System.Windows.DeferredResourceReference.GetValue(BaseValueSourceInternal valueSource)
   at System.Windows.StaticResourceExtension.TryProvideValueImpl(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
   at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
StackTrace:
   at HandyControl.Controls.TitleElement..cctor()

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-09-03 14:49
Quicker版本
版本 反馈次数