我在Web窗体项目中设置了microsoft图表控件。图表呈现为断开的图像链接。我尝试添加图表控件的页面位于具有以下路径的位置:
http://localhost/application/default.aspx
正在生成的损坏的图像链接为:
如果我手动将损坏的图像链接更改为以下内容,它将呈现:
Web.config:
<add name="ChartImg" verb="*" path="ChartImg.axd" type="system.web.UI.DataVisualization.Charting.ChartHttpHandler,system.web.DataVisualization,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" />;
<add key="ChartImg" value="Storage=memory;Timeout=20;"/>
(Also tried <add key="ChartImg" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"/ >)
更新
是导致问题的ChartImg.axd处理程序的实际位置。我认为页面继承和名称空间在这个庞大的旧项目中被弄乱了。我试图将图表添加到/ Application目录中的页面-我需要能够更改处理程序的路径。有人吗?