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

ERROR: RadChart.Net2.dll and Telerik.Web.UI

1 Answer 147 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Inger Rönngren
Top achievements
Rank 1
Inger Rönngren asked on 24 Sep 2010, 02:21 PM
Im currently upgrading the RadGrid from the RadGridNet2.dll to the newer found in Telerik.Web.UI. The problem is that i dont want to updragde the RadChart so i dont remove the RadChart.Net2.dll from my project, instead i set the alias to something else than global in order to avoid namespace conflicts. However when i debug my site im still getting this error:


c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\App_Web_graphtable.ascx.b3eb3a1f.aw_nms1w.0.cs(183): error CS0433: The type 'Telerik.Charting.ChartSeries' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\assembly\dl3\e42fd8ce\00b73c75_97b6c901\Telerik.Web.UI.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\assembly\dl3\692c3a46\65f87e34_c35bcb01\RadChart.Net2.DLL'


This is very very urgent, please help!

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Sep 2010, 12:15 PM
Hi Inger Rönngren,

The code in Telerik.Charting namespace is shared by Telerik.Web.UI and RadChart.Net2, meaning they cannot co-exist in the same project. Still, the migration should be fairly easy as RadChart for ASP.NET AJAX has all the features of RadChart for ASP.NET (version 4.0 and later) and adds zoom/scroll on top of it. To migrate RadChart for ASP.NET (RadChart.Net2.dll) to RadChart for ASP.NET AJAX (part of Telerik.Web.UI.dll) you need to remove the reference to RadChart.Net2.dll and replace the Register directives as follows:

<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="myTagPrefix" %>
<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.Charting" TagPrefix="myTagPrefix" %>

should become

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="myTagPrefix" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="
myTagPrefix" %>


Best regards,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
Inger Rönngren
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or