We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ChartWebControl accesses null pointer at load time

Thread ID:

Created:

Updated:

Platform:

Replies:

97915 Jan 19,2011 04:46 PM UTC Jan 20,2011 06:13 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Adam Bruss
Asked On January 19, 2011 04:46 PM UTC

Hello and thanks for syncfusion.

I have an asp.net website with a ChartWebControl on it. A null pointer is accessed in the syncfusion chart code at page load time. I've tried setting a datasource and a series to the chart, but still get a null pointer access at page load time.

Here's the error message.

"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.]
Syncfusion.Web.UI.WebControls.Shared.Common.WebResourceManager.RegisterTypedClientResource(Int32 nFileType, String sLink, EResourceScope eResourceScope, FNGetLinkableHtmlControl fnGetControl) +257
Syncfusion.Web.UI.WebControls.Shared.Common.WebResourceManager.RegisterTypedClientResource(Int32 nFileType, String sLink, EResourceScope eResourceScope, EResourceFileType eResourceType, Boolean bCommonScript) +380
Syncfusion.Web.UI.WebControls.Shared.Common.WebResourceManager.RegisterTypedClientResource(Int32 nFileType, String sLink, EResourceScope eResourceScope, EResourceFileType eResourceType) +48
Syncfusion.Web.UI.WebControls.Shared.Common.WebResourceManager.RegisterClientCSSResource(String sLink, EResourceScope eResourceScope) +43
Syncfusion.Web.UI.WebControls.Chart.ChartWebControl.RegisterScriptFiles() +190
Syncfusion.Web.UI.WebControls.Chart.ChartWebControl.OnPreRender(EventArgs e) +992
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842"

What do I have to do to get the chart to load?

Thanks!

-Adam


Vijayabharathi K [Syncfusion]
Replied On January 20, 2011 06:13 AM UTC

Hi Adam,

Could you please let us know whether you are using AJAX ScripManager or not? If not, we suggest you to use ScripManager in the web form to avoid the “Object reference not set to an instance of an object” error during in run-time.

Regards,
Vijayabharathi K




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;