Problems with Httphandler

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Problems with Httphandler

Post by norman » Tue Feb 12, 2008 10:41 am

Hi,

I can't get the a webchart to display when the TempChart property is set to Httphandler - all I see is a red cross. I have added the relevant entry as described in the help file to the httphandlers section of web.config. Is this all that is required in order to get it to work? I have

App_Licenses.dll
TeeChart.xml
TeeChart.dll
TeeChart.dll.refresh

located in the bin directory of my app, and licenses.licx alongside my web.config in to the root of my app. Am I correct in saying that GetChart.aspx is not required when TempChart is set to HttpHandler? I can get it to work if the TempChart is set to File but I'd like to option of using Httphandler.

Perhaps someone could confirm if there is any difference in the functionality available to the developer that is dependent on the value of the TempChart property.

Thanks,

Norman

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Feb 12, 2008 4:08 pm

Hello Norman,

Correct, GetChart.aspx isn't necessary when using httphandler.

Syntax in web.config, to confirm:

Code: Select all

<system.web>
	<httpHandlers>
		<add verb="*" path="TeeChartImgGen.ashx" type="Steema.TeeChart.Web.TeeChartImgGen, TeeChart"/>
	</httpHandlers>

...etc...
Chart functionality itself is the same across tempChart types.

If the httphandler option continues not to function .. are there any other configuration options in web.config that may be causing a problem? Does the Web demo shipped with TeeChart work correctly (it uses httphandler)? If your project is complex you could rule in/out server related issues by creating a simple new webform demo with a single Chart and httphandler entry, setting the Chart TempChart property to httphandler in the property window.

Httphandler uses standard HttpContext.Cache, so provided you are able to use that correctly in your web applications it should also work correctly for TeeChart.

Regards,
Marc Meumann
Steema Support

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Tue Feb 12, 2008 5:09 pm

Hi Marc,

Thanks for the reply.

Syntax in web.config is as provided.

The web demo works correctly.

It may be something to do with the type of caching being used but I can't really go changing this as it's likely to have knock-ons elsewhere. I'm glad to hear that there is no functionality difference (i.e. I can still implement scrolling, zooming etc. if required?) - it may be less of issue so.

Thanks again,

Norman

Post Reply