I am evaluating SciChart for an upcoming project.
I need to be able to use the charts in a web browser as well as a console.
I have downloaded the v5 trial version and have been trying to use the chart control in a WPF browser application.
While trying to do so, I get runtime error “A first chance exception of type ‘System.Windows.Markup.XamlParseException’ occurred in PresentationFramework.dll”
Can you please help me to fix the above issue.
- Nazia Muhaimuna` asked 5 years ago
- You must login to post comments
Hi Andrew,
Please find below details of the inner exceptions and stack trace:
Inner Exceptions
A first chance exception of type ‘System.Windows.Markup.XamlParseException’ occurred in PresentationFramework.dll
Additional information: ‘The invocation of the constructor on type ‘SciChart.Examples.ExternalDependencies.Controls.SciChart3DInteractionToolbar.SciChart3DInteractionToolbar’ that matches the specified binding constraints threw an exception.’ Line number ’31’ and line position ’10’.
The invocation of the constructor on type ‘SciChart.Examples.ExternalDependencies.Controls.SciChart3DInteractionToolbar.SciChart3DInteractionToolbar’ that matches the specified binding constraints threw an exception.’ Line number ’31’ and line position ’10’.”
The type initializer for ‘SciChart.Examples.ExternalDependencies.Controls.SciChart3DInteractionToolbar.SciChart3DInteractionToolbar’ threw an exception.”
The type initializer for ” threw an exception.
The type initializer for ‘A.LZ’ threw an exception.
Attempt by security transparent method ‘A.LZ..cctor()’ to access security critical method ‘System.AppDomain.add_ResourceResolve(System.ResolveEventHandler)’ failed.\n\nAssembly ‘SciChart.Charting3D, Version=5.0.0.10963, Culture=neutral, PublicKeyToken=b55dd9efe817e823’ is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself. In order to access security critical code, this assembly must be fully trusted.
Stack Trace
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SciChart.Examples.Examples.Charts3D.CreateA3DChart.LogarithmicAxis3DView.InitializeComponent()
at SciChart.Examples.Examples.Charts3D.CreateA3DChart.LogarithmicAxis3DView..ctor()
Attached is a screenshot of the exception: “ExceptionSciChart.png”
Regards,
Nazia
- Nazia Muhaimuna` answered 5 years ago
- Hi Nazia, we do not officially support SciChart in an XBap, but you might be able to get it to work by enabling FULL TRUST. http://blogs.microsoft.co.il/maxim/2008/03/05/how-to-run-wpf-xbap-as-full-trust-application/ Best regards, Andrew
- You must login to post comments
Hi Nazia,
In the XamlParseException there will be an inner exception. That too may have an inner exception. Go down all of them and please paste the error messages from all inner exceptions here. Then we can try and diagnose the problem.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Please login first to submit.