This is a migrated thread and some comments may be shown as answers.

Old reference to Telerik.Charting?

9 Answers 275 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 16 Nov 2007, 08:19 PM

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

9 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 20 Nov 2007, 07:24 AM
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
0
Jonathan
Top achievements
Rank 1
answered on 20 Nov 2007, 01:28 PM

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


0
Vladimir Milev
Telerik team
answered on 23 Nov 2007, 02:04 PM
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
0
Jonathan
Top achievements
Rank 1
answered on 23 Nov 2007, 11:04 PM
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
0
Vladimir Milev
Telerik team
answered on 28 Nov 2007, 12:23 PM
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
0
Jonathan
Top achievements
Rank 1
answered on 29 Nov 2007, 09:15 AM
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
0
CodeR
Top achievements
Rank 2
answered on 22 Jan 2008, 11:57 PM
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?
0
Vladimir Milev
Telerik team
answered on 23 Jan 2008, 08:28 AM
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
0
CodeR
Top achievements
Rank 2
answered on 23 Jan 2008, 11:27 PM
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.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Jonathan
Top achievements
Rank 1
CodeR
Top achievements
Rank 2
Share this question
or