Welcome to the Xceed Community | Help
Community Search  

Wrong dll version on load

Sort Posts: Previous Next
  •  09-26-2008, 9:10 AM Post no. 15664

    Wrong dll version on load

    I developed a test app with the Chart .NET version 4.1 under VS2005.

    I loaded a new system with VS2008 and installed a trial of Xceed which uses Chart .NET version 4.2

     On importing my VS205 project everything is fine until I load the form with the chart. I get an error saying it can't find the dll because it's looking for version 4.1.100.0 which is no longer on my system. I've searched everywhere for where this version is specified in my project files but can see nothing.

     I can add a v4.2 Chaet Control to another form, but I can't open the original form.

    Can someone tell me how my project files can be changed to correctly refer to the 4.2.x.x dll

    Thanks

  •  09-26-2008, 2:20 PM Post no. 15680 in reply to 15664

    Re: Wrong dll version on load

    You will need to close the designer, open the .Designer.cs or .vb file, remove the ChartControl in code, open the .resx file and remove all references to the chart, basically comment all code in the form.cs or .vb file, save it and recompile the project.  Then open the designer, drop the ChartControl on the designer, uncomment the code in the form.cs (.vb), and compile again.  It should work.

    The reason for this is that the persistence of the chart is saved into the .resx file, which unfortunately is not update-able.  Version references are kept in the .resx file, explaining the issue.

    For future upgrades, what you can do is to delete the ChartControl from the designer before upgrading our components, and once the upgrade is complete, add the component to the form again.  The project should compile fine.

    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.