MSCharts“未找到请求类型为"GET"的http处理程序".错误 [英] MSCharts "No http handler was found for request type 'GET'" error

查看:110
本文介绍了MSCharts“未找到请求类型为"GET"的http处理程序".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Win2008服务器上安装MSCharts. 它安装没有问题. 然后我写 在配置中.

I tried to install MSCharts on my Win2008 server. It installed without problem. Then I wrote in config.

但是,当我尝试使用图表打开页面时,它返回以下错误. 找不到请求类型"GET"的http处理程序

But when I'm trying to open page with charts it returned following error. No http handler was found for request type 'GET'

您对这个问题有任何想法吗?

Do you have any thougths about the problem?

推荐答案

这是在Windows 7上 ASP.NET 4.0/IIS 7.5所需的:

This is what you need for ASP.NET 4.0 / IIS 7.5 on Windows 7:

您的web.config必须包含以下内容:

Your web.config must contain the following:

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;" />
</appSettings>


<compilation targetFramework="4.0">
 <assemblies>
  <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 </assemblies>
</compilation>

<system.webServer>

<handlers>
      <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"  />
    </handlers>
</system.webServer>

您还需要在aspx页面顶部添加此内容:

You also need this at the top of your aspx page:

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

希望这会有所帮助

这篇关于MSCharts“未找到请求类型为"GET"的http处理程序".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆