Jump to content
Software FX Community

Xaml Parse Exception, error in Designresources.xaml


EdGonzalez
 Share

Recommended Posts

Hello,

ChartFX causes an XAML parse exception at window creation.

I'm evaluating ChartFx and I'm attempting the basic step of creating a single window with a chart. I'm using version 8.0.3422.28509 of the ChartFX.WPF dll. The xaml for my window is copied below, along with the exception I receive.

It is important to note that all of the samples run fine. I can load their solutions, build, and interact with them.

It is also important to note that I am testing two other chart controls. Each control is being tested in its own window. If I disable the other two windows, then ChartFX does not throw an exception. This leads me to believe that ChartFx and at least one of the other charts are causing some conflict. The other charts I'm reviewing are Syncfusion and ComponentOne.

Please, look into this issue.

XAML <Window x:Class="ChartEvaluation.ChartFx" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cfx="clr-namespace:ChartFX.WPF;assembly=ChartFX.WPF" Title="ChartFx" Height="300" Width="300"> <Grid> <cfx:Chart> </cfx:Chart> </Grid> </Window>

EXCEPTION:

System.Windows.Markup.XamlParseException occurred  Message=" 'System.Windows.Media.Media3D.MeshGeometry3D' is not a valid value for property 'Geometry'.  Error in markup file 'ChartFX.WPF;component/themes/designresources.xaml'."  Source="PresentationFramework"  LineNumber=0  LinePosition=0  StackTrace:       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.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)       at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)       at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)       at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)       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.LoadComponent(Object component, Uri resourceLocator)       at ChartEvaluation.ChartFx.InitializeComponent() in ...\ChartEvaluation\ChartEvaluation\ChartFx.xaml:line 1       at ChartEvaluation.ChartFx..ctor() in ...\ChartEvaluation\ChartEvaluation\ChartFx.xaml.cs:line 23  InnerException: System.ArgumentException       Message="'System.Windows.Media.Media3D.MeshGeometry3D' is not a valid value for property 'Geometry'."       Source="PresentationFramework"       StackTrace:            at System.Windows.StyleHelper.ProcessSharedPropertyValue(ParserContext parserContext, Object targetObject, Object property, Object& value)            at System.Windows.Markup.OptimizedTemplateContent.ReadSharedRecord(BamlRecord bamlRecord)            at System.Windows.Markup.OptimizedTemplateContent.ReadRecord(BamlRecord bamlRecord)            at System.Windows.Markup.OptimizedTemplateContent.AddContentRecord(BamlRecord bamlRecord)            at System.Windows.Markup.TemplateBamlRecordReader.AddContentRecord(BamlRecord bamlRecord)            at System.Windows.Markup.TemplateBamlRecordReader.ReadRecord(BamlRecord bamlRecord)            at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)            at System.Windows.Markup.TemplateTreeBuilderBamlTranslator.ParseFragment()            at System.Windows.Markup.TreeBuilder.Parse()            at System.Windows.Markup.XamlTemplateSerializer.ConvertBamlToObject(BamlRecordReader reader, BamlRecord bamlRecord, ParserContext context)            at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)            at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)       InnerException:
Link to comment
Share on other sites

We think this might be a Chart FX issue where we mistakenly used a 3.5 SP1 only API and it has been fixed in later builds.

You can download our most recent hotfix here (make sure you run IE as an Administrator if UAC is enabled). If you still experience this after upgrading please post or send a sample app that reproduces the issue.

Regards,

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...