I have a Xamarin Forms Application. I am using the DocIO control to export a word document with Charts from the UWP application. It is working great in debug mode. However, when I try to run it in release mode, I get the following error. Is there any additional setting that I have to complete for the release mode?
thanks for your help.
System.TypeInitializationException: TypeInitialization_Type_NoTypeAvailable ---> System.PlatformNotSupportedException: Arg_PlatformNotSupported
at Syncfusion.OfficeChart.Implementation.FormulaUtil.GetSortedList(String[] arrStrings)
at Syncfusion.OfficeChart.Implementation.FormulaUtil..cctor()
at SharedLibrary!<BaseAddress>+0x359d96
Exception_EndOfInnerExceptionStack
at SharedLibrary!<BaseAddress>+0x359e1f
at SharedLibrary!<BaseAddress>+0x359cac
at Syncfusion.OfficeChart.Implementation.FormulaUtil.CreatePtg(OfficeChart.Parser.Biff_Records.Formula.FormulaToken token, Object[] arrParams)
at Syncfusion.OfficeChart.Implementation.RangeImpl.GetNativePtg()
at Syncfusion.OfficeChart.Implementation.Charts.ChartSerieImpl.SetAIRange(OfficeChart.Parser.Biff_Records.Charts.ChartAIRecord record, OfficeChart.IRange range, OfficeChart.Parser.Biff_Records.Charts.ChartAIRecord.ReferenceType onNull)
at Syncfusion.OfficeChart.Implementation.Charts.ChartSerieImpl.OnValueRangeChanged(OfficeChart.Implementation.ValueChangedEventArgs e)
at Syncfusion.OfficeChart.Implementation.Charts.ChartSerieImpl.set_ValuesIRange(OfficeChart.IRange value)
at Syncfusion.OfficeChart.Implementation.Charts.ChartSerieImpl.set_Values(OfficeChart.IOfficeDataRange value)
at SharedLibrary!<BaseAddress>+0x359d7c
at SharedLibrary!<BaseAddress>+0x359cac
at Syncfusion.OfficeChart.Implementation.FormulaUtil..ctor(OfficeChart.IApplication application, Object parent, Globalization.NumberFormatInfo numberFormat, Char chArgumentsSeparator, Char chRowSeparator)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.Excel2007Serializator..ctor(OfficeChart.Implementation.WorkbookImpl book)
at Syncfusion.OfficeChart.Implementation.XmlSerialization.FileDataHolder.get_Serializator()
at Syncfusion.OfficeChart.Implementation.XmlSerialization.FileDataHolder.SaveStyles(Compression.Zip.ZipArchive archive, IO.MemoryStream stream)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeChartElements(DocIO.DLS.WChart chart, String id)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeChartGraphicData(DocIO.DLS.WChart chart)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeInlinePicture(DocIO.DLS.ParagraphItem item)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeChart(DocIO.DLS.WChart chart)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeParagraphItem(DocIO.DLS.ParagraphItem item)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeParagraphItems(DocIO.DLS.ParagraphItemCollection paraItems)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeParagraph(DocIO.DLS.WParagraph paragraph, Boolean isLastSection)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeBodyItem(DocIO.DLS.TextBodyItem item, Boolean isLastSection)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeBodyItems(DocIO.DLS.BodyItemCollection bodyItemCollection, Boolean isLastSection)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeSection(DocIO.DLS.WSection section)
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeDocumentBody()
at Syncfusion.DocIO.DLS.DocxSerializator.SerializeDocument()
at Syncfusion.DocIO.DLS.DocxSerializator.Serialize(IO.Stream stream, DocIO.DLS.WordDocument document)
at Syncfusion.DocIO.DLS.WordDocument.SaveDocx(IO.Stream stream)
at Syncfusion.DocIO.DLS.WordDocument.SaveInternal(IO.Stream stream, DocIO.FormatType formatType)
at Syncfusion.DocIO.DLS.WordDocument.Save(IO.Stream stream, DocIO.FormatType formatType)
at Macra.UWP!<BaseAddress>+0x26b34ba