This is a migrated thread and some comments may be shown as answers.

Localization exception

2 Answers 148 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 25 Oct 2011, 08:19 PM
I just have put a RadBusyIndicator in my Window like this:

 <telerik:RadBusyIndicator IsBusy="{Binding IsWorking}" BusyContent="Loading..." />

And in my App object I do (OnStartup event):
    StyleManager.ApplicationTheme = new MetroTheme();
            var findResource = FindResource("BaseColor");
            if (findResource != null)
                MetroColors.PaletteInstance.AccentColor = (Color)findResource;
When I run my application. So I get this error:

System.Windows.Markup.XamlParseException occurred
  Message=Set property 'Telerik.Windows.Controls.LocalizationManager.ResourceKey' threw an exception.
  Source=PresentationFramework
  LineNumber=0
  LinePosition=0
  StackTrace:
       at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
       at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
       at System.Windows.ResourceDictionary.RealizeDeferContent(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.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
       at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
       at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
       at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
       at System.Windows.SystemResources.LookupResourceInDictionary(ResourceDictionary dictionary, Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
       at System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
       at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
       at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
       at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
       at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
       at Telerik.Windows.Controls.RadBusyIndicator.OnInitialized(EventArgs e) in c:\TB\101\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\BusyIndicator\RadBusyIndicator.cs:line 144
  InnerException: System.ArgumentException
       Message=Object of type 'System.Windows.Setter' cannot be converted to type 'System.Windows.DependencyObject'.
       Source=mscorlib
       StackTrace:
            at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
            at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
            at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
            at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
            at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
            at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
            at System.Xaml.Schema.XamlMemberInvoker.SetValueSafeCritical(Object instance, Object value)
            at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
       InnerException:




2 Answers, 1 is accepted

Sort by
0
Accepted
Ivo
Telerik team
answered on 26 Oct 2011, 09:38 AM
Hello Paulo,

We successfully reproduced this at our side. It will be fixed for the next internal build.

Your Telerik points are updated.

Regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paulo
Top achievements
Rank 1
answered on 26 Oct 2011, 04:31 PM
Thank you
Tags
BusyIndicator
Asked by
Paulo
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Paulo
Top achievements
Rank 1
Share this question
or