We've been troubleshooting a rather odd problem for the past few hours and have hit a dead end.
The issue is as follow: In our Developpement environnement and Quality insurance environement, our WebChart works brilliantly.
However, when deployed on our production envrionnement, the chart stops working and greets us with a nice red X.
We are using TeeChart v4.1.2012.
Our WebChart TempChart proprety is set to Session.
We have our Session enabled under IIS and in our Web.Config.
The GetChart.aspx is included in our project.
We cannot seem to find the issue at hand.
It's rather odd because the WebChart doesn't even try to call GetChart.aspx when in Session mode, it rather tries to access the _temp_chart_ folder at the root of the application, as if it was in file mode.
If we try to make it work in Cache mode, the WebChart gets called this time but unfortunatly it doesn't display our graph, but it's working all right in our other environement.
Here are the relevant code snippet:
GetChart.aspx.cs
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
string chartName = Request.QueryString["Chart"];
if (Session[chartName] != null)
{
System.IO.MemoryStream chartStream = new System.IO.MemoryStream();
chartStream = ((System.IO.MemoryStream)Session[chartName]);
Response.ContentType = "image/" + "png";
Response.OutputStream.Write(chartStream.ToArray(), 0, (int)chartStream.Length);
chartStream.Close();
Session.Remove(chartName);
}
}
Code: Select all
<tchart:WebChart ID="ChartProd" runat="server" AutoPostback="False" GetChartFile="GetChart.aspx"
Height="700" OnLoad="ChartProd_Load" TempChart="Session" Width="1100" />
Code: Select all
<system.web>
<sessionState mode="InProc" />
//...
</system.web>
So my question is, what are the reasons for falling back into File mode when Session is clearly specified? What are we missing? We doubled checked every of our configuration in IIS with no success.
Much appreciated.