asp.net chart control showing "object reference not set instant of an object" in visual web part. RRS feed

  • Question

  • Hi All,

    I am using Visual Studio 2010 Ultimate and just I have installed ASP.NET  Chart Controls for .NET Framework 3.5 SP1 (MSChart.exe). When I am checking SP of my Visual Studio by nevigating to Help->About Visual Studio, I do not see SP1 there. I can see Microsoft Visual Studio 2010(Version 10.0.30319.1). Does chart control not support this VS?

    I have registered below line in .ascx page:-

    <%@ Register Assembly="System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

    I have also added name space in .ascx.cs file:-

    using System.Web.UI.DataVisualization.Charting;

    I have also added below .dll in my application:-


    Now when I just drag and drop chart control on page gets the error "object reference not set an instatnt of object". Just I was wondering to use chart control. Please help me out in this



    Friday, October 12, 2012 11:43 AM