BoykoD Posted August 27, 2013 Report Posted August 27, 2013 Dears, We are going to use your chart in our application that will build dynamic views for users(something like dashboards), each part of the view will be stored as XAML definition in the DB and then will be processed and showed to final user on fly. The question here, if it is possible to use FX Chart in such way? We have tried trial version 8.1, and got an error "Couldn't get Run Time license for 'ChartFX.WPF.Chart" on the workstations without installed trial version, full error stack can be found below. Cannot create instance of 'Chart' defined in assembly 'ChartFX.WPF, Version=8.1.4247.27013, Culture=neutral, PublicKeyToken=a1878e2052c08dce'. Exception has been thrown by the target of an invocation. Error at object 'System.Windows.Controls.Grid', Line 2 Position 4. 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(BamlRecord bamlRecord, Int32 lineNumber, Int32 linePosition) at System.Windows.Markup.XamlTreeBuilder.BamlRecordWriterSyncUpdate(BamlRecord bamlRecord, Int32 lineNumber, Int32 linePosition) at System.Windows.Markup.XamlTreeBuilderBamlRecordWriter.WriteBamlRecord(BamlRecord bamlRecord, Int32 lineNumber, Int32 linePosition) at System.Windows.Markup.BamlRecordWriter.WriteElementStart(XamlElementStartNode xamlElementNode) 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, XmlReader reader, Boolean wrapWithMarkupCompatReader, XamlParseMode parseMode, Boolean etwTracingEnabled) at System.Windows.Markup.XamlReader.Load(XmlReader reader) at System.Windows.Markup.XamlReader.Parse(String xamlText) at Quipu.CustomWareNET.Client.DashBoard.DashBoardClass.PrepareLayout() in D:\projects\CustomWare_Georgia\Test-branch\CustomWareNET.Client\DashBoard\DashBoardClass.cs:line 114 Exception has been thrown by the target of an invocation. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail) Couldn't get Run Time license for 'ChartFX.WPF.Chart' at ChartFX.WPF.Internal.SfxLicenseProvider.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3, LicenseProvider A_4) at ChartFX.WPF.Internal.RegistryLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) at System.ComponentModel.LicenseManager.Validate(Type type, Object instance) at ChartFX.WPF.Chart.UpdateLicense() at ChartFX.WPF.Chart.ab() at ChartFX.WPF.Chart..ctor() thank you in Advance. BR Dmitry Quote
AndreG Posted August 27, 2013 Report Posted August 27, 2013 For the license to be included on the project you must compile the code that instantiates the chart as an executable. If this is not how you plan to use the chart, an alternative is to instantiate a dummy chart in the executable that loads the components where your real chart are created. Would this be an option for you? Quote
Recommended Posts
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.