I’m using the latest version of the chart. when I run everything works fine, but when I open a XAML file with a chart the error window has:
The name “ZoomPanModifier” does not exist in the namespace “clr-namespace:Abt.Controls.SciChart;assembly=Abt.Controls.SciChart.Wpf”
And I get one of these for each control such as ZoomPanModifier, TextAnnotation, SeriesSelectionModifier etc…
How do I fix this issue?
- kelias asked 11 years ago
- You must login to post comments
We have discovered that this error is actually shown by Visual Studio when referencing a .NET4.0 assembly in a .NET4.0 Client Profiler application. Also, it can occur when referencing a .NET4.5 assembly in .NET4.0 application.
Please see The tag ‘SciChartSurface’ does not exist in XML namespace ‘http://schemas.abtsoftware.co.uk/scichart’ for further details.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 years ago
- You must login to post comments
Hi there,
Please, try to replace the SciChart namespace definition in Xaml by
xmlns:SciChart=" http://schemas.abtsoftware.co.uk/scichart"
. Could you let us know if it helps?
Best regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
-
I changed the namespace and did a full recompile, but the error remains.
-
Hi, Could I ask you to provide some additional info for us to reproduce the issue? So questions: - which IDE do you use? - do you receive similar errors if you open one of our examples? - these are design-time errors only, aren't they? Also, if you have any suspicions about what could cause this, please, let us know. We'll try to reproduce at our side and fix ASAP! Best regards, Yuriy
-
I've attached an example project that gives me the same issue. It runs fine but displays the errors I've mentioned above. (will have to add your own license and change the location of the scichart references.) I use Visual Studio 2012 Yes these are design time errors only, and the application does run.
-
Hi again, Thank you for the attached project! Unfortunately, we couldn't reproduce the issue, neither in it, nor in examples from our example suite. But we have a task for it, and will try to find out what causes it to appear. Please, notify us if you have any ideas or solve it by yourself. We also will let you know if something is found or issue is fixed. Best regards, Yuriy
- You must login to post comments
Hey there,
Usually these kind of issues occur after updating SciChart. Because Visual Studio is so awesome, to truly clean-rebuild you will need to close all open instances of Visual Studio, delete all bin and obj directories in your solution, then re-open and rebuild. If the error still occurs after this, let us know!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 11 years ago
-
Good idea, but it is still occurring. I deleted the bin and obj folders, restarted Visual Studio and did a full rebuild. I've also tried uninstalling scichart and re-installing it several times now without luck. I also thought it could have something to do with x86/x64. I've tried used both sets as well as the one with both and in every case I still get the same issues. Does it need to be in the GAC? I checked the GAC on my machine and it's not there.
-
No, we don't install to the GAC because funnily enough, Microsoft themselves recommend against it. Give me a minute, let me try to download your project and rebuild. I know its a daft question, but is the reference to Abt.Controls.SciChart.WPF showing up in the 'References' tree of that project and without a yellow warning sign? If you right-click properties on it, what is the path? Does it exist at this path? What is the version of the DLL at this path (Right click -> Go to details) Best regards, Andrew
- You must login to post comments
Please login first to submit.