MS 图表在 win 2008 服务器上无法正确显示



我在我的网页上显示两个折线图和两个饼图。我不确定为什么会发生这种情况,但有时我在运行应用程序时会看到图表,有时看不到。下面是我的 web.confg 文件设置。

  <?xml version="1.0"?>
    <configuration>
      <system.web>
        <authorization>
          <allow roles="ANALYST"/>
          <deny users="*" />
        </authorization>
        <httpHandlers>
          <add path="ChartImg.axd" verb="*" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>
      </system.web>
      <system.webServer>
        <handlers>
          <remove name="ChartImageHandler"/>
          <add name="ChartImageHandler" preCondition="integratedMode" verb="*" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  />
        </handlers>

      </system.webServer>
      <appSettings>
        <add key="ChartImageHandler" value="WebDevServerUseConfigSettings=true;privateImages=false;storage=file;timeout=20;dir=c:test;"/>
      </appSettings>

除此之外,我的bin文件夹中有System.web.datavisual.dll并且我在Windows Server 2008 R2上运行该应用程序。整个应用程序在 .net 4.0 中开发。我没有收到任何错误消息。我在放置图像的 C:\Test 文件夹中看到图形图像,但没有在网页上看到。

谢谢。

这是浏览器缓存问题。如果我清理浏览器缓存,它可以正常工作。

最新更新