Old reference to Telerik.Charting?

10 posts, 0 answers
  1. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 16 Nov 2007 Link to this post

    Hi, I'm having problems with Telerik.Charting in a web page using a Prometheus chart. Now you might think this post is in the wrong forum but no.

    It seems that the RadControls Q2 2007 SP1 for Winforms installer is installing Telerik.Charting 1.6.1.0 instead of 1.6.2.0. This is causing the error:

    Error 1 Indirect reference is being made to assembly Telerik.Charting version 1.6.2.0, which contains 'Telerik.Web.UI.RadChart'. This Project references a prior version of Telerik.Charting version 1.6.1.0. To use 'Telerik.Web.UI.RadChart', you must replace the reference to Telerik.Charting with version 1.6.2.0 or higher. C:\Websites\CheckWeb_NEW\Default.aspx 1 1 C:\Websites\CheckWeb_NEW\


     

    when I try to use a Prometheus chart in my web application.

    Replacing this dll and XML in C:\Program Files\Telerik\RadControls for WinForms Q2 2007\bin and also in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies with 1.6.2.0 seems to solve this issues but the old dll (1.6.1.0) is still present in the GAC.

    Perhaps the Winforms installer should be updated?

    Regards,
    Jonathan

  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 20 Nov 2007 Link to this post

    Hello Jonathan Simmons,

    Telerik.Charting assembly is shared among many of our products. Although we try to sync our releases to go out together, sometimes a service pack for winforms may come out earlier or later than a service pack for Web.UI. This, however, should not ultimately be a problem for you if you reference the correct version from within your projects. Can you please extend your feedback and let us know how the winforms installer should be updated? Currently it ships with the version of Telerik.Charting which the winforms controls are built against.

    Thanks a million for your feedback and looking forward to hearing from you.

    Sincerely yours,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 20 Nov 2007 Link to this post

    Hi, thanks for your response. The only issue I have is that the current Prometheus/ASP.NET release cannot seem to co-exist with the latest Winforms release if charting is used.

    With the Winforms, ASP.Net, Reporting and Prometheus controls all installed on my PC, both 1.6.1.0 and 1.6.2.0 versions of Telerik.Charting are installed (1.6.1.0 via the Winforms installer). If I then create a brand new Ajax website project with a single page and then drop a Prometheus chart onto that page, I get the error described despite the fact that there are no references to 1.6.1.0 anywhere in that project. Although the page will build and display properly, the code behind and page source both highlight the error and if I try to reference the chart control in code by typeing Me.Radchart1, intellisense states:

    Protected Dim WithEvents RadChart as <unrecognized type> 

    and I cannot then refer to the chart object at all in code.

    What I am saying is that to avoid this error, Winforms needs to be built against Charting 1.6.2.0 and not 1.6.1.0 so that only the most recent version of Telerik.Charting is installed (as both versions have the same
    public key token).

    Jonathan


  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 23 Nov 2007 Link to this post

    Hello Jonathan Simmons,

    Can you tell us what references does adding the prometheus chart to the website adds in your web.config file? When a web control references a specific version of an assembly it should add the appropriate version in the web.config reference.

    Kind regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 23 Nov 2007 Link to this post

    Hi, dropping a Prometheus chart onto an aspx page adds the following code to the aspx page:

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <%@ Register Assembly="Telerik.Charting, Version=1.6.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" 
     Namespace="Telerik.Charting" TagPrefix="telerik" %> 
     
    and this to web.config:

    <add assembly="Telerik.Charting, Version=1.6.2.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>  
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 

    As you can see, the correct references are added but the described error is still present.

    Jonathan
  7. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 28 Nov 2007 Link to this post

    Hello Jonathan Simmons,

    We have been doing a lot of testing locally and were unable to reproduce what you are describing. If you are using a website the only two places from which you can reference a wrong version of Telerik.Charting.dll is the web.config file and if you have placed it in the local bin folder. If you have a web application project then you can check the .csproj file with a text editor and see if there is a wrong reference somewhere. This is all we can suggest at this point of time as we really are unable to understand what is causing the issue on your end nor how to reproduce it.

    Greetings,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Jonathan Simmons
    Jonathan Simmons avatar
    108 posts
    Member since:
    Jun 2005

    Posted 29 Nov 2007 Link to this post

    Thanks for your help.

    Incidentally, I have the same issue on my laptop as well, so this is not just one isolated case.

    Regards,
    Jonathan
  9. CodeR
    CodeR avatar
    36 posts
    Member since:
    Apr 2005

    Posted 22 Jan 2008 Link to this post

    I am receiving the exact same problem as Jonathon:

    I am using the lastest version of both Telerik Reporting (2.0.10) and Prometheus (2007.3.1314.20) and whilst the solution builds ok I lose all intellisense on pages which use the RadChart. On the ASPX page the top line is underlined with the following error:

    Indirect reference is being made to assembly Telerik.Charting version 1.7.1.0, which contains 'Telerik.Web.UI.RadChart'. This Project references a prior version of Telerik.Charting version 1.0.3.0. To use 'Telerik.Web.UI.RadChart', you must replace the reference to Telerik.Charting with version 1.7.1.0 or higher.

    Like Jonathon when I add a chart to a page it also adds:
    <%@ Register Assembly="Telerik.Charting, Version=1.7.1.0, ....

    To the top of the ASPX page as well as a reference in the web.config file. There appears to me that there are no other references in the entire project to Telerik.Charting version 1.0.30.

    Any further thoughts on this one?
  10. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 23 Jan 2008 Link to this post

    Hello Damien Coyle,

    We recently fixed a problem with intellisense being lost when Telerik.Charting library is registered on a page. Those problems were only visible in VisualStudio 2008 though. Are you by any chance speaking about the same thing or is the issue you are describing a different one?

    Regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  11. CodeR
    CodeR avatar
    36 posts
    Member since:
    Apr 2005

    Posted 23 Jan 2008 Link to this post

    Following Jonathan's steps I removed the old version of the Telerik.Charting.dll from:
    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

    This resolved the issue.

    My thoughts are that the automatic installer did not remove an old versions of the Telerik.Charting dll from the GAC, hense the reason why I was getting Intellisense issues with the new version.

    btw: The issue for was occuring within VS 2005 Professional (so .NET 2.0), running the latest version Prometheus and the latest version of Telerik Reporting.
Back to Top
UI for WinForms is Visual Studio 2017 Ready