Teechart ASP.Net

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jim Holmes
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am
Location: Scotland

Teechart ASP.Net

Post by Jim Holmes » Mon May 30, 2005 1:25 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 30, 2005 1:33 pm

Hi Jim,

Which value have you set at WebChart's TempChart property?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jim Holmes
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am
Location: Scotland

Post by Jim Holmes » Mon May 30, 2005 2:20 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 30, 2005 2:32 pm

Hi Jim,

When debugging your project through the code you posted, is the chart present on that code snippet?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jim Holmes
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am
Location: Scotland

Post by Jim Holmes » Mon May 30, 2005 2:52 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 30, 2005 3:03 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply