【问题标题】:httphandler cannot find axd of Highchartshttphandler 找不到 Highcharts 的 axd
【发布时间】:2015-02-24 19:44:11
【问题描述】:

我正在开发使用 Highcharts 图表库的项目,我添加了用于导出到 (pdf,png,..) 的导出模块,它在开发环境中运行良好,但是当我将项目部署到 IIS 7 时 当我将任何图表导出到任何范围时,都会出现以下错误:

HTTP 错误 404.0 - 未找到

您要查找的资源已被删除、更改名称或暂时不可用。

Requested URL: http://localhost/HighchartsExport.axd 

注意:

以下 HttpHandler 添加到 web.config:

<add verb="POST" path="HighchartsExport.axd" type="Tek4.Highcharts.Exporting.HttpHandler, Tek4.Highcharts.Exporting" validate="false" />

那么,有什么问题?以及如何解决?

【问题讨论】:

  • 可能有任何端口被阻塞?
  • 我不这么认为,因为网站在同一个端口上工作

标签: asp.net highcharts iis-7 axd


【解决方案1】:

HighchartsExport.axd httpHandler 被添加到 Web.Config 文件的 System.Web 部分。在 IIS7 中,应将其添加到 System.Webserver 部分下,如下所示

<add name="HighchartsExport" path="HighchartsExport.axd" type="Tek4.Highcharts.Exporting.HttpHandler, Tek4.Highcharts.Exporting" verb="POST"  />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-27
    • 1970-01-01
    • 1970-01-01
    • 2023-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多