Tuesday, December 16, 2008

Some odd issues with using the Chart Control inside a wizard...

From: http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/1dc4b352-c9a5-49dc-8f35-9b176509faa1#page:2

I don't know if this is the same problem as everyone else has seen (sounds like maybe it's different).

I wrote a page with a chart in it.

I then changed the page to use an asp:Wizard - the chart being in the last step.

After this change, I got the executing error shown below when I reached the last page.

Moving the chart out of the wizard and back into the root of my control removed the error.

However, when I moved the chart back to the last step of the wizard again, the error was cleared....

Somewhat confused at present...


Error executing child request for ChartImg.axd.

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.Web.HttpException: Error executing child request for ChartImg.axd.

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:

[HttpException (0x80004005): Error executing child request for ChartImg.axd.]
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2675871
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +819
System.Web.HttpServerUtility.Execute(String path) +8
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +152
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInstalled() +27
System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +46
System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +201
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

1 comment:

  1. How to export chart to excel when am using series in charts?

    ReplyDelete