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. Image for the cookie policy date
close icon

ChartWebControl accesses null pointer at load time

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


1 Reply

VK Vijayabharathi K Syncfusion Team 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




Loader.
Live Chat Icon For mobile
Up arrow icon