'ChartSeriesType' is ambiguous in the namespace 'Telerik.Charting'

Thread is closed for posting
2 posts, 0 answers
  1. Priya
    Priya avatar
    2 posts
    Member since:
    Dec 2010

    Posted 21 Nov 2011 Link to this post

    Hi, 
    I am getting the error 'ChartSeriesType' is ambiguous in the namespace 'Telerik.Charting'. I have Telerik.Web.UI dll in my bin folder. 
    Here is the code

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

    <asp:Content ID="Content1" ContentPlaceHolderID="phCon1" Runat="Server">
    <table><tr><td><asp:Label ID="lblMessage" Visible="false" runat="server" /></td></tr></table>
        <table>
            <tr>
            <td>From :
            <telerik:RadDatePicker ID="DateTextCalendar1" runat="server"></telerik:RadDatePicker></td>
            <td>To :<telerik:RadDatePicker ID="DateTextCalendar2" runat="server"></telerik:RadDatePicker>
    </td>
            <td><asp:Button runat="server" ID="btnSubmit" Text="Apply" /></td>
        </tr>
        </table>
      <asp:PlaceHolder ID="phTestDash" Visible="true" runat="server">
            
          <telerik:RadChart ID="RadChart1" DataSourceID="SqlDataSource1" runat="server" Skin="Vista"
                            Width="465px" Height="260px" DefaultType="Line" 
                            AutoLayout="true" AutoTextWrap="true" CreateImageMap="false"  >
                            <ChartTitle>
                                <TextBlock Text="Test">
                                </TextBlock>
                              </ChartTitle>
                            <Series>
                                <telerik:ChartSeries Name="Actions" Type="Line" DataYColumn="iActions">
                                    <Appearance LegendDisplayMode="ItemLabels">
                                    </Appearance>
                                </telerik:ChartSeries>
                            </Series>
                            </telerik:RadChart>
      </asp:PlaceHolder>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Test %>" ProviderName="System.Data.SqlClient" 
            SelectCommandType="StoredProcedure" SelectCommand="Test_GET">
            <SelectParameters>
                <asp:Parameter Name="TestID" DbType="Guid" />
                <asp:Parameter Name="iTestStartDateID" Type="Int32" />
                <asp:Parameter Name="iTestEndDateID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </asp:content>

    And the code behind is

    Imports Telerik.Web.UI
    Protected Sub LoadGraph()
                 Try
                        dt = function(test)

                    If dt Is Nothing Or dt.Rows.Count <= 0 Then
                        ShowMessage("No Data Available", False)
                        phTestDash.Visible = False
                        Exit Sub
                    End If

                Catch ex As Exception
                    ShowMessage(ex.Message, True)
                End Try
            End Sub


    I went thru the forum and removed the reference from the corresponding dll. We are your customer and we need a solution for it to go forward.







  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 24 Nov 2011 Link to this post

    Hi Priya,

    This might happen if you still have a reference to Telerik.Charting.dll. It is now merged into Telerik.Web.UI.dll, so you need to make sure it is not referenced anywhere in your project.

    Best regards,
    Ves
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top