graeme.mclean Posted January 24, 2008 Report Share Posted January 24, 2008 I am getting an error when trying to run any of the charts in my xbap application:- {"Cannot create instance of 'Chart' defined in assembly 'ChartFX.WPF, Version=0.8.2937.31814, Culture=neutral, PublicKeyToken=a1878e2052c08dce'. Exception has been thrown by the target of an invocation. Error at object 'chartExpander' in markup file 'WPFSpike;component/default.xaml' Line 20 Position 18."} Any ideas? Cheers, Graeme Link to comment Share on other sites More sharing options...
JuanC Posted January 25, 2008 Report Share Posted January 25, 2008 XBAPs run in low trust and unfortunately since .NET 1.0 the licensing scheme for third party controls has not worked properly in low-trust. The licensing API tries to open your exe as a file (even though it is already running) to extract the resource that contains the license info and in low-trust these API will fail. You can verify this by creating a simple licensed control and try to run it in low-trust. To workaround this, we have implemented a "manual" licensing scheme where you call an static function somewhere in your app before any chart is created, we handle this scenario on a per-user basis so please contact wpf at softwarefx dot com for more info. Regards, JuanC Link to comment Share on other sites More sharing options...
psamagal Posted October 28, 2008 Report Share Posted October 28, 2008 Hello, I'm having a similar runtime error: Message=" 'System.Windows.Media.Media3D.MeshGeometry3D' is not a validvalue for property 'Geometry'. Error in markup file'ChartFX.WPF;component/themes/designresources.xaml'." Source="PresentationFramework" I'm using a standalone application, witch runs in full trust(not the previous problem ). The only thing i have done is this: private void FX_DrawChart(Grid g) { ChartFX.WPF.Chart fxChart = new ChartFX.WPF.Chart(); *** //FX_DrawTitle(); //FX_CreateSeries(); g.Children.Add(fxChart); } Where g is the grid where the chart will be added, but the applications crashes in *** with the attached StackTrace. The strange is, I do the same thing in a test project and everything gone well. I can Link to comment Share on other sites More sharing options...
JuanC Posted October 28, 2008 Report Share Posted October 28, 2008 We think this is an issue we have already fixed where we used a property that only exists in .NET 3.5. Can you post the version of ChartFX.WPF.dll you are using? Regards, JuanC Link to comment Share on other sites More sharing options...
psamagal Posted October 29, 2008 Report Share Posted October 29, 2008 Hello, The Version I'm using is Chart FX for WPF (Beta) Version 8.0.3155.18127 Link to comment Share on other sites More sharing options...
psamagal Posted October 29, 2008 Report Share Posted October 29, 2008 Hello, The Version I'm using is Chart FX for WPF (Beta) Version 8.0.3155.18127(An image of the Properties Window is atached) and the .Net Version is 3.5 SP1 Best Regards psamagal Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.