Last post Dec 23, 2011 03:00 PM by Sagar1304
Dec 22, 2011 03: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 06: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 04: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 08: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=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Dec 23, 2011 09:03 AM|Sagar1304|LINK
below is httphandler
Dec 23, 2011 09:17 AM|smirnov|LINK
Can it be because of this problem?
Dec 23, 2011 09:44 AM|Sagar1304|LINK
I solved this by implementing IRequiresSessionState.
and now its rendering image of chart properly.
Dec 23, 2011 03: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?