ASP.NET Render error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

ASP.NET Render error

Post by Brian Begy » Mon May 10, 2004 10:07 pm

I need to add webcharts dynamically to my page. (Later we are porting to Sharepoint, so everything needs to be added dynamically).

The Render event throws the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
Steema.TeeChart.Web.WebChart.CreatePictureFile(HtmlTextWriter writer)
Steema.TeeChart.Web.WebChart.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
System.Web.UI.WebControls.TableCell.RenderContents(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.WebControls.Table.RenderContents(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()

Any suggestions? the asp.net userid has permissions on the _chart_temp, so that doesn't seem to be the problem.

Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

FIXED

Post by Brian Begy » Tue May 11, 2004 3:28 pm

I solved it through "voodoo programming" - I changed one variable at a time until it worked.

It turns out, one has to manually populate the myGraph.ID property. I would suggest some enhancement to the error handler to explain what actually went wrong where.

Pep
Site Admin
Site Admin
Posts: 3296
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue May 11, 2004 3:57 pm

Hi Brian,

thanks for the advise.
It turns out, one has to manually populate the myGraph.ID property. I would suggest some enhancement to the error handler to explain what actually went wrong where.
Ok, I've added this comment on our wish list to see what can we do.

Brian Begy
Newbie
Newbie
Posts: 16
Joined: Fri Apr 16, 2004 4:00 am
Location: Chicago
Contact:

Post by Brian Begy » Wed May 12, 2004 9:11 pm

Jose,

It seems that this particular issue is unlikely to occur very often, but in general, the error messages should provide some guidance to developers.

Post Reply