GenericExpressionDark.xaml error after Q3 upgrade

40 posts, 0 answers
  1. Sia
    Admin
    Sia avatar
    667 posts

    Posted 28 Dec 2010 Link to this post

    Hello Julio Colon,

    As my colleague said this issue will be addressed with one of our upcoming service packs.
    Can you please give us more details about what is installed on your computer and the version of the binaries so that we can investigate why the workaround does not help you?

    Kind regards,
    Sia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  2. Kais
    Kais avatar
    18 posts
    Member since:
    Jan 2011

    Posted 29 Jan 2011 Link to this post

    Hi there, 

    I've got the same problem, can't view any UserControl that has a telerik control on it in the designer. Deleting the design folders does not work in my case. 

    Using VS2008 SP1, .NET 3.5 SP1 and Telerik Q3 2010 1314 release. 

    Thanks, 
  3. UI for WPF is Visual Studio 2017 Ready
  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 31 Jan 2011 Link to this post

    Hi Kais,

    Are there any errors shown? Could you please paste the error messages that appear.



    Kind regards,
    Milan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  5. Kais
    Kais avatar
    18 posts
    Member since:
    Jan 2011

    Posted 31 Jan 2011 Link to this post

    Hi there, 

    The error text in designer is pasted below. This occurs whenever I have a telerik control referenced in the Xaml of a WPF usercontrol. 

    Thanks, 

    '/Telerik.Windows.Controls;component/Themes/GenericExpressionDark.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. '/Telerik.Windows.Controls;Component/themes/Expression/Dark/BusyIndicator.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '142' Position '39'.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls;component/Themes/GenericExpressionDark.xaml'.  Error at object 'System.Windows.ResourceDictionary'.
       at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
       at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
       at System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException)
       at System.Windows.Markup.BamlRecordReader.ReadPropertyRecordBase(String attribValue, Int16 attributeId, Int16 converterTypeId)
       at System.Windows.Markup.BamlRecordReader.ReadPropertyConverterRecord(BamlPropertyWithConverterRecord bamlPropertyRecord)
       at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
       at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
       at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
       at System.Windows.Markup.TreeBuilder.Parse()
       at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
       at System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled)
       at System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled)
       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.OnThemeStyleKeyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.StyleManager.OnThemeChanged(DependencyObject target, DependencyPropertyChangedEventArgs changedEventArgs) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\StyleManager.cs:line 133
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
       at System.Windows.TemplateApplicationHelper.SetDependencyValueCore(DependencyObject dependencyObject, DependencyProperty dp, Object value)
       at System.Windows.Markup.BamlRecordReader.SetDependencyValue(DependencyObject dependencyObject, DependencyProperty dependencyProperty, Object value)
       at System.Windows.Markup.BamlRecordReader.SetPropertyValue(Object o, PropertyDefinition propertyDefinition, Object value)
       at System.Windows.Markup.BamlRecordReader.BaseReadOptimizedMarkupExtension(Object element, Int16 attributeId, PropertyDefinition propertyDefinition, Object value)
       at System.Windows.Markup.BamlRecordReader.ReadPropertyWithStaticResourceIdRecord(BamlPropertyWithStaticResourceIdRecord bamlPropertyWithStaticResourceIdRecord)
       at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
       at System.Windows.StyleHelper.LoadOptimizedTemplateContent(DependencyObject container, ParserContext parserContext, OptimizedTemplateContent optimizedTemplateContent, FrameworkTemplate frameworkTemplate, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
       at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
       at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(Size constraint) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\GridViewDataControl.cs:line 6485
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
     
      
    '/Telerik.Windows.Controls;Component/themes/Expression/Dark/BusyIndicator.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '142' Position '39'.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls;component/Themes/GenericExpressionDark.xaml'.
       at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
       at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
       at System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException)
       at System.Windows.Markup.BamlRecordReader.ReadPropertyRecordBase(String attribValue, Int16 attributeId, Int16 converterTypeId)
       at System.Windows.Markup.BamlRecordReader.ReadPropertyConverterRecord(BamlPropertyWithConverterRecord bamlPropertyRecord)
       at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
       at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
       at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
       at System.Windows.Markup.TreeBuilder.Parse()
       at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
       at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
       at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
       at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
       at System.Windows.ResourceDictionary.set_Source(Uri value)
     
      
    Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '142' Position '39'.
       at System.Windows.Markup.XamlReaderHelper.RethrowAsParseException(String keyString, Int32 lineNumber, Int32 linePosition, Exception innerException)
       at System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlNode)
       at System.Windows.Markup.XamlParser.ReadXaml(Boolean singleRecordMode)
       at System.Windows.Markup.XamlParser._Parse()
       at System.Windows.Markup.XamlParser.Parse()
       at System.Windows.Markup.StyleXamlTreeBuilder.ParseFragment()
       at System.Windows.Markup.XamlStyleSerializer.ConvertXamlToObject(XamlReaderHelper tokenReader, ReadWriteStreamManager streamManager, ParserContext context, XamlNode xamlNode, BamlRecordReader reader)
       at System.Windows.Markup.TreeBuilderXamlTranslator.WriteElementStart(XamlElementStartNode xamlElementStartNode)
       at System.Windows.Markup.XamlParser.ProcessXamlNode(XamlNode xamlNode, Boolean& cleanup, Boolean& done)
       at System.Windows.Markup.XamlParser.ReadXaml(Boolean singleRecordMode)
       at System.Windows.Markup.TreeBuilderXamlTranslator._Parse()
       at System.Windows.Markup.XamlParser.Parse()
       at System.Windows.Markup.XamlTreeBuilder.ParseFragment()
       at System.Windows.Markup.TreeBuilder.Parse()
       at System.Windows.Markup.XamlReader.XmlTreeBuildDefault(ParserContext pc, Stream stream, XamlParseMode parseMode, Boolean etwTracingEnabled)
       at System.Windows.Markup.XamlReader.Load(Stream stream, ParserContext parserContext)
       at MS.Internal.AppModel.AppModelKnownContentFactory.XamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
       at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
       at System.Windows.ResourceDictionary.set_Source(Uri value)
     
      
    Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
       at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
       at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
       at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
       at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
       at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
       at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType)
       at System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit)
       at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
       at System.Windows.Markup.XmlnsCache.GetClrnsToAssemblyNameMappingList(Assembly[] asmList, String xmlnsRequested)
       at System.Windows.Markup.XmlnsCache.GetMappingArray(String xmlns)
       at System.Windows.Markup.XamlTypeMapper.GetClrNamespacePairFromCache(String namespaceUri)
       at System.Windows.Markup.XamlTypeMapper.GetNamespaceMapEntries(String xmlNamespace)
       at System.Windows.Markup.XamlTypeMapper.CreateTypeAndSerializer(String xmlNamespace, String localName)
       at System.Windows.Markup.XamlTypeMapper.GetTypeAndSerializer(String xmlNamespace, String localName, Object dpOrPiorMi)
       at System.Windows.Markup.XamlParser.GetElementType(XmlReader reader, String localName, String namespaceUri, String& assemblyName, String& typeFullName, Type& baseType, Type& serializerType)
       at System.Windows.Markup.XamlReaderHelper.GetElementType(Boolean extensionFirst, String localName, String namespaceURI, String& assemblyName, String& typeFullName, Type& baseType, Type& serializerType)
       at System.Windows.Markup.XamlReaderHelper.System.Windows.Markup.IParserHelper.GetElementType(Boolean extensionFirst, String localName, String namespaceURI, String& assemblyName, String& typeFullName, Type& baseType, Type& serializerType)
       at System.Windows.Markup.MarkupExtensionParser.GetExtensionType(String typename, String attributeValue, Int32 lineNumber, Int32 linePosition, String& namespaceURI, String& targetAssemblyName, String& targetFullName, Type& targetType, Type& serializerType)
       at System.Windows.Markup.MarkupExtensionParser.FillAttributeData(Type declaringType, String propIdName, String typename, String args, String attributeValue, Int32 lineNumber, Int32 linePosition, Int32 depth, Object info)
       at System.Windows.Markup.MarkupExtensionParser.IsMarkupExtensionAttribute(Type declaringType, String propIdName, String& attrValue, Int32 lineNumber, Int32 linePosition, Int32 depth, Object info)
       at System.Windows.Markup.XamlReaderHelper.WritePropertyAttribute(Type parentType, HybridDictionary resolvedProperties, String attribLocalName, String attribName, String attribNamespaceURI, String attribValue, Object dynamicObject, String assemblyName, String declaringTypeFullName, String dynamicObjectName, Type declaringType, Int32 lineNumber, Int32 linePosition, Int32 depth, ArrayList& markupExtensionList)
       at System.Windows.Markup.XamlReaderHelper.WriteAttributes(Type parentType, String parentTypeNamespace, String unknownTagName, Int32 depth)
       at System.Windows.Markup.XamlReaderHelper.CompileElement(String assemblyName, String typeFullName, Int32 depth, Type serializerType, String namespaceURI, Boolean isEmptyElement, Boolean& needToReadNextTag)
       at System.Windows.Markup.XamlReaderHelper.CompileBamlTag(XmlNodeType xmlNodeType, Boolean& endTagHasBeenRead)
       at System.Windows.Markup.XamlReaderHelper.ReadElementNode()
       at System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlNode)
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 03 Feb 2011 Link to this post

    Hi,

     I've just tried this with our Q3 2010 Sp1 however everything worked fine on my end - screenshot and application attached. Can you try the same application at your end to see what will be the result?

    Greetings,
    Vlad
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  7. Kais
    Kais avatar
    18 posts
    Member since:
    Jan 2011

    Posted 04 Feb 2011 Link to this post

    Hi Vlad, 

    Thanks for the example project. I downloaded this an extracted it, I noticed there are no references to Telerik DLLs in the project. I believe I know where the problem lies. I am storing the Telerik dlls in a Libs/Telerik folder at the root level of my solution (to fit witht he pattern for other third party DLLs in my application). When I reference these by using Project->References->Browse (the navigate to Libs folder) I still see the GenericXaml error. These are the DLLs from the Q3 2010 1314 hotfix download (Binaries only). 

    When I instead reference them by Project->References->.NET (Choose telerik libs from the list) I do not see the GenericXaml error. 

    Its likely a GAC issue as someone has pointed out before. Hence the reason that deployment with the DLLs in the target folder does not affect the running of the app, but does disturb the designer views. 

    Im going to do some more testing. If this is the resolution then I will reference Telerik DLLs from the cached list as opposed to a local DLL. 

    Best regards, 
  8. Kais
    Kais avatar
    18 posts
    Member since:
    Jan 2011

    Posted 04 Feb 2011 Link to this post

    Actually, after deleting local libs and referencing only the installed libs, restarting the computer, clean rebuild, I still get this problem. 

    I also opened up the WpfApplication1 sample you posted above and I have the same GenericXaml exception in the designer window that I see in my main app. 

    Very frustrating! Basically I cannot view telerik controls in the designer. 

    Any ideas?
  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 10 Feb 2011 Link to this post

    Hello,

     Sorry for the references - it seems that I've missed to save the project however the binaries are in the bin folder. I've re-attached the same project in order to check it at your end.

    All the best,
    Vlad
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  10. Julio Colon
    Julio Colon avatar
    13 posts
    Member since:
    May 2010

    Posted 14 Mar 2011 Link to this post

    I found something interesting today... it doesnt fix it, but maybe helps understand the problem.

    I had a brand new PC with my project code which reference only DLL, these are pulled directly from my repository.  My solution worked fine with SP3 SP1, but as soon as I installed Q3 SP1 using the complete option in the .msi package my code stopped working and the "/Telerik.Windows.Controls.Input;component/themes/Expression/Dark" problem started again.

  11. Julio Colon
    Julio Colon avatar
    13 posts
    Member since:
    May 2010

    Posted 17 Mar 2011 Link to this post

    Upgrading to Q1 2011 Beta fixed the problem for me.
Back to Top
UI for WPF is Visual Studio 2017 Ready