SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.
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.
Please find below details of the inner exceptions and stack trace:
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=18.104.22.16863, 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.
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)
Attached is a screenshot of the exception: “ExceptionSciChart.png”
Please login first to submit.