Last post Dec 23, 2011 04:00 PM by Sagar1304
Dec 22, 2011 04:20 PM|Sagar1304|LINK
In my aspx page i am using jquery from which i am calling httphandler.
in this httphandler, i am rendering chart control by below mentioned code.
HtmlTextWriter _HtmlTextWriter = new HtmlTextWriter(_StringWriter);
and return string in result.
but in aspx page getting error of 404 not found for image url.
Help me to solve this.!!
Dec 22, 2011 07:50 PM|smirnov|LINK
Right click in the browser and copy image URL, paste it in the address bar and see what happens.
Dec 23, 2011 05:22 AM|Sagar1304|LINK
i have tried that.
it shows url for the image of chart like below:
but it shows same error "404 Not Found".
Is there aby workaround for this?
Dec 23, 2011 09:35 AM|smirnov|LINK
Please check if handler is configured correctly in the web.config
type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Dec 23, 2011 10:03 AM|Sagar1304|LINK
below is httphandler
Dec 23, 2011 10:17 AM|smirnov|LINK
Can it be because of this problem?
Dec 23, 2011 10:44 AM|Sagar1304|LINK
I solved this by implementing IRequiresSessionState.
and now its rendering image of chart properly.
Dec 23, 2011 04:00 PM|Sagar1304|LINK
i have just noted that after implementing that interface now it will not fullfill further request untill HTTPHANDLER response has received.
is there any workaround to solve this?