PDA

View Full Version : [CLOSED] Bug rendering asp.net chart in web site scenario



odyssey
Feb 18, 2013, 3:26 PM
Very strange. Why in "WEB SITE" scenario this code crushes with error message "Error executing child request for handler 'Ext.Net.SelfRenderingPage'"
but it works on "WEB PROJECT" This is only with asp.net charts


public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "application/json";
ComponentLoader.Render(getPanel());
}
private Ext.Net.Panel getPanel()
{
System.Web.UI.DataVisualization.Charting.Chart chrt = new System.Web.UI.DataVisualization.Charting.Chart();
chrt.BorderlineColor = System.Drawing.Color.Blue;
chrt.Width = new System.Web.UI.WebControls.Unit("100px");
chrt.Height = new System.Web.UI.WebControls.Unit("100px");
Ext.Net.Panel pnl = new Panel();
pnl.Title = "Panel with asp control ";
pnl.ID = "Panel_sdsd";
pnl.ContentControls.Add(chrt);
return pnl;
}
public bool IsReusable
{
get
{
return false;
}
}

Daniil
Feb 18, 2013, 4:32 PM
Hi @odyssey,

Could you look at the InnerException of the main exception?

odyssey
Feb 19, 2013, 6:57 AM
Hi @odyssey,

Could you look at the InnerException of the main exception?
I have to apologise everithing works just fine. I forgot to add nessesary config in web.config. Because in web site scenario they are not added automatically

Daniil
Feb 19, 2013, 10:42 AM
Ok, thank you for the follow-up!