wggfcusmq 发表于 2016-11-1 08:30:30

ActiveReport10加载报表时发生错误了

管理员好:
       我在开发的电脑上面打开报表是好的,但发布到测试服务器上面,就会提示错误,错误分别如下:

       使用FlashViewer,提示错误:打印文档时发生IO错误,原因:error #2032
       使用AcrobatReader,提示js错误:OpenedReport未定义
       使用RawHtml,提示js错误:arjq未定义

请问这个问题要怎么解决呢。

Lenka.Guo 发表于 2016-11-1 09:31:57

htmlviewer 类型呢?

Lenka.Guo 发表于 2016-11-1 09:39:05

Lenka.Guo 发表于 2016-11-1 09:31
htmlviewer 类型呢?

如电话沟通,您是IIS6.0,Server 2003的部署环境,所以在IIS6.0 部署时,需要在部署时做一些额外的设置,详情参考博客,下方“部署在IIS6”:http://blog.gcpowertools.com.cn/post/ActiveReports_Deploy_-IIS.aspx

wggfcusmq 发表于 2016-11-1 09:56:53

Lenka.Guo 发表于 2016-11-1 09:39
如电话沟通,您是IIS6.0,Server 2003的部署环境,所以在IIS6.0 部署时,需要在部署时做一些额外的设置, ...

还是不行,但添加映射最后两个看不清楚,可能我没有添加正确。

wggfcusmq 发表于 2016-11-1 09:57:03

Lenka.Guo 发表于 2016-11-1 09:39
如电话沟通,您是IIS6.0,Server 2003的部署环境,所以在IIS6.0 部署时,需要在部署时做一些额外的设置, ...

还是不行,但添加映射最后两个看不清楚,可能我没有添加正确。

Lenka.Guo 发表于 2016-11-1 10:08:03

本帖最后由 Lenka.Guo 于 2016-11-1 10:15 编辑

wggfcusmq 发表于 2016-11-1 09:57
还是不行,但添加映射最后两个看不清楚,可能我没有添加正确。
按照以下表格内容,添加映射:

可执行文件扩展名确认文件是否存在/脚本引擎
复制 *.aspx 脚本映射内容..AR10不选择
复制 *.aspx 脚本映射内容..AR10Web不选择
复制 *.aspx 脚本映射内容..rpx选择
复制 *.aspx 脚本映射内容..rdlx选择
复制 *.aspx 脚本映射内容..rdl选择
复制 *.aspx 脚本映射内容..ActiveReport选择

添加完扩展名后,打开项目的Web.config文件,在 <system.web> </system.web>节点中,添加以下内容,注意修改Version里面的版本号为您当前机器安装的版本。如将Verison 修改为 10.2.8028.0
<httpHandlers>
    <add verb="*" path="*.AR10" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
    <add verb="*" path="*.ActiveReport" type="GrapeCity.ActiveReports.Web.Handlers.CompiledReportHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
    <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
    <add verb="*" path="*.rdl" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
    <add verb="*" path="*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
    <add verb="*" path="*.AR10Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web.v10, Version=8.0.xxxx.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
</httpHandlers>

wggfcusmq 发表于 2016-11-1 10:57:31

Lenka.Guo 发表于 2016-11-1 10:08
按照以下表格内容,添加映射:

添加完扩展名后,打开项目的Web.config文件,在节点中,添加以下内容 ...

添加完映射后就可以了,非常感觉Lenka.Guo 版主

Lenka.Guo 发表于 2016-11-1 11:16:33

没事,解决了就好~
页: [1]
查看完整版本: ActiveReport10加载报表时发生错误了