Error Loading Radchart Image 问题及解决

97 篇文章 0 订阅

http://www.telerik.com/community/forums/aspnet-ajax/ajax/error-loading-radchart-image.aspx

http://www.telerik.com/community/forums/aspnet-ajax/chart/error-loading-radchart-image-showing-red-x-and-error-message-popup.aspx

 

Hereis how RadChart works. When the page request is processed on the server, animage is created and saved in the session or in the TempImages folder, while an <img> tag is rendered in the page.The value of its ImgSrc attribute looks similar to this:

ChartImage.axd?UseSession=true&ChartID=26ebed38-fa6a-4aa8-8840-3cf1d770b4e8_chart_RadChart1&imageFormat=Png&random=084ed189-0e3c-47b3-8fad-83892cbf4202


When the browser requests the image, theChartHttpHandler is responsible for retrieving the image from the session stateand for serving it to the client. It also deletes the image from the session /filesystem and puts it in the cache with 5 minutes expiration time.


There might be different reasons for the errorthat you are getting:

·        ChartHttpHandler isnot configured correctly -- the problem will be persistent

·        Output caching withexpiration time larger that 5 minutes is deployed. Possible problems aredescribed in this forum post.

·        The image request isnot processed by the machine, which has processed the page request . Thesolution here would be to implement State server or SQL server session state mode or sticky session, ensuring that all the requests from one userwill be handled by the same machine.


An alternative solution involves
 disabling the sessionstate usage forthe chart. In this case you will need to provide a shared folder accessiblefrom all the machines in the web farm and map it as a virtual directory withinyour web application. Then set this folder as TempImagesFolder.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值