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

Problem in Upgrading from Trial Version to RadControls for ASP.NET AJAX

3 Answers 72 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Suraj
Top achievements
Rank 1
Suraj asked on 07 Apr 2009, 10:30 AM
I was using the trial version of Telerik and its Rad controls in my web site. It was working fine with Rad charts.
I was using 4 files in my bin folder for RadChart.
    1. Telerik.Charting.dll
    2. Telerik.Charting.xml
    3. Telerik.Web.UI.dll
    4. Telerik.Web.UI.XML
and it was working fine.
I was using Telerik.Charting.ChartSeriesItem and it was working fine with the 4 dll's.

Now I have installed RadControls for ASP.NET AJAX  er developer version in my machine. I am using MS VS2005 and .net 2.0. After installation in this version I get a bin folder with 3 files
    1. Telerik.Web.Design.dll
    2. Telerik.Web.UI.dll
    3. Telerik.Web.UI.XML
Now I deleted my previous 4 files from my bin folder and replaced that with the latest 3 files found in the bin folder of my computer C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Bin folder

After that I am unable to Run my site. The Error says :
Server Error in '/Chart' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Charting.ChartSeriesItem.SaveViewState() +63
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Charting.ChartingStateManagedCollection`1.SaveViewState() +88
   Telerik.Charting.ChartingStateManagedCollection`1.Telerik.Charting.IChartingStateManager.SaveViewState() +7
   Telerik.Charting.ChartSeries.SaveViewState() +68
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Charting.ChartingStateManagedCollection`1.SaveViewState() +88
   Telerik.Charting.ChartingStateManagedCollection`1.Telerik.Charting.IChartingStateManager.SaveViewState() +7
   Telerik.Charting.Chart.SaveViewState() +168
   Telerik.Charting.StateManagedObject.Telerik.Charting.IChartingStateManager.SaveViewState() +4
   Telerik.Web.UI.RadChart.SaveViewState() +56
   System.Web.UI.Control.SaveViewStateRecursive() +59
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Control.SaveViewStateRecursive() +156
   System.Web.UI.Page.SaveAllState() +466
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2357




 Please help me.




3 Answers, 1 is accepted

Sort by
0
Dessy
Telerik team
answered on 09 Apr 2009, 12:53 PM
Hi Suraj,

With the release of RadControls for ASP.NET AJAX Q3 2008 we have introduced a change related to the Telerik.Charting assembly. It is now IL merged into Telerik.Web.UI. This way the entire suite is delivered within a single assembly -- Telerik.Web.UI.  In order to resolve the issue, you will need to replace the old Telerik.Charting Register directive with the new one . Please refer to our help topic for more detailed information on how to do this.

The files you have in the Bin folder are the correct ones. You can find more information about Telerik.Web.Design.dll here.

Best wishes,
Dessy
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Suraj
Top achievements
Rank 1
answered on 10 Apr 2009, 11:23 AM
Hi Thanks for the reply, after going through your suggestion also still it is posing the same error.

In the .aspx page where chart exist I used this code:
        <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik"  %>
        <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 and in the .cs page
       using Telerik.Web.UI;
       using Telerik.Charting;



I am using Telerik editor also.
So could you please specify me which .dll should I keep in the bin folder and what should I write in my web.config file so that I can be able to get both chart and editor.

What should I write in .aspx file and .cs file.
0
Ves
Telerik team
answered on 13 Apr 2009, 08:56 AM
Hi Suraj,

The code for both .cs and .aspx files you have shown seems to be correct. The 3 files in the Bin folder, mentioned earlier also seem to be the correct ones, so the reason might be elsewhere. Unfortunately we are not aware of such issue with RadChart, so we would kindly ask you to send us an example which reproduces the error so that we could investigate it further.


Best wishes,
Dessy
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Suraj
Top achievements
Rank 1
Answers by
Dessy
Telerik team
Suraj
Top achievements
Rank 1
Ves
Telerik team
Share this question
or