Page 1 of 1

Teechart ASP.Net

Posted: Mon May 30, 2005 1:25 pm
by 8122420
Hi,

This is probably P.E.B.K.A.C but I'm using the Teechart .Net WebChart. I am accessing a MS SQL 2000 database using Microsofts Enterprise Library data access block. I'm developing on a Windows XP Pro SP2 machine and on the development box everything works as it is designed to.

When I copy the project across to the production Web server, a Windows server 2003 box I get the following things don't work so well. The first time the web page is executed the chart is rendered as it was on the development box. If I then change the date range or any other dynamic aspect of the chart and refresh the page a small red “x” is displayed instead of the chart.

The only way I can render the chart correctly is to click the browser refresh button. After this the apsx page functions correctly.

I'm not sure if this is a Teechart issue as everything works correctly on the development box. Any assistance would be greatly appreciated.

Regards,

Jim

Posted: Mon May 30, 2005 1:33 pm
by narcis
Hi Jim,

Which value have you set at WebChart's TempChart property?

Posted: Mon May 30, 2005 2:20 pm
by 8122420
Hi Narcis,

Many thanks for the reply. The TempChart property is set at Session.

I am using the following to store the session state.

if (Session["ch1"]!=null)
{
Session.Remove("ch1");
}

ch1.Export.Template.Save(tmpChart);
Session.Add("ch1",tmpChart);

Regards,

Jim

Posted: Mon May 30, 2005 2:32 pm
by narcis
Hi Jim,

When debugging your project through the code you posted, is the chart present on that code snippet?

Posted: Mon May 30, 2005 2:52 pm
by 8122420
Narcis,

Tricky one, everything works OK on the development box. If I copy the entire project over to the WebServer and recompile the project everything works OK while running in the IDE. If I point a client at the ASPX page whether on the server or a remote machine then I encounter the problem described above.

Could it be a permissions issue?

Jim

Posted: Mon May 30, 2005 3:03 pm
by narcis
Hi Jim,
Could it be a permissions issue?
Most likely it is. It could help you having a look at TeeChart tutorials available at TeeChart program group, specially:

Tutorial 9 - ASP.NET Applications.
Tutorial 10 - Walk-through ASP.NET Examples.
Tutorial 17 - Designtime Runtime and License Requirements.


It may also help you having a look at the ASP Server Examples, also included with the installation, and its settings.