Reputation: 25
I need to use Surface charts in my winforms application for that I have downloaded nevron.nov.charts
through Nuget packages in Visual Studio, when I am trying to add NchartViewControl
to my design page I am getting System.Runtime.InteropServices.COMException
. Please find the attached images and guide me in solving the issue.
'System.Runtime.InteropServices.COMException', 'system.TypeLoadException:GenericArguments'
Upvotes: 1
Views: 820
Reputation: 109
Unfortunately, the NOV Chart provides support only for 2D charting at the moment and you will not be able to plot Surface charts. We are planning to implement 3D charting functionality in the near future.
Upvotes: 1
Reputation: 4827
Visual Studio shows these exceptions when the version of the controls installed in the toolbox differs from the version of the controls referenced by your project. Most probably you have an old version of Nevron Open Vision installed on your PC and it has registered some controls to the toolbox of Visual Studio and then you have installed a NuGet package that contains more recent versions of these controls. They differ from the ones registered in the toolbox and that is why Visual Studio throws an exception.
There are two possible solutions to this problem:
All NOV assemblies will then be installed to the GAC and you won't have to download any NuGet packages to use NOV controls. You will also receive a set of new Visual Studio project templates for creating NOV applications, for example "NOV Windows Forms Chart Application", "NOV Windows Forms Diagram Application", etc. Click here to see a screenshot of the project templates that come with NOV.
Upvotes: 1