phinex 发表于 2016-4-1 15:04:03

IIS7发布出现问题

本帖最后由 Lenka.Guo 于 2016-4-27 13:40 编辑

License for the WebViewer cannot be found.To continue using ActiveReports 9, contact GrapeCity at ActiveReports.Sales@grapecity.com or Order Online.Please send any questions or comments regarding ActiveReports 9, or our other products to activereports.support@grapecity.com.
null

Lenka.Guo 发表于 2016-4-1 15:29:18

发布的时候,请检查开发机器中License.licx 文件中是否缺少WebViewer的声明;
1. 如果缺少,请手动添加或是删除License.licx文件,删除页面中的WebViewer后,重新添加WebViewer,让系统自动生成License.licx文件
2. 发布项目之前,在开发机器中,需要确保所有的与GrapeCity相关的dll文件Copy Local 属性被设为True;

发布参考博客:http://blog.gcpowertools.com.cn/post/2015/04/07/ActiveReports_Deploy_-IIS.aspx

phinex 发表于 2016-4-1 16:57:54

Lenka.Guo 发表于 2016-4-1 15:29
发布的时候,请检查开发机器中License.licx 文件中是否缺少WebViewer的声明;
1. 如果缺少,请手动添加或是 ...

已经有License.licx文件
GrapeCity.ActiveReports.Web.WebViewer, GrapeCity.ActiveReports.Web.v9, Version=9.2.3244.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports.v9, Version=9.2.3244.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
GrapeCity.ActiveReports.PageReport, GrapeCity.ActiveReports.v9, Version=9.2.3244.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf.v9, Version=9.2.3244.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
,另外我VS2012调试的时候,一直出现“打印文档时发生IO错误。原因: Error #2032”,但是VS2010一直没有问题,是我们项目升级后才出现这个问题。

Lenka.Guo 发表于 2016-4-1 17:19:06

项目升级之后,是否有修改过AR相关的文件?

通常情况下,开发机器中报Error #2032 错误,通常有两种原因:
1. 是由于缺少FlashViewer 需要的swf文件;在安装目录下可以找到这两个文件:C:\Program Files (x86)\GrapeCity\ActiveReports 10\Deployment\Flash

2. 项目中AR 相关的dll文件不正确,如版本号;

建议重新生成License.licx文件。

如果开发机器中调试运行及正常, 请您在部署的时候严格按照 2#中博客步骤执行。

phinex 发表于 2016-4-13 16:31:16

本帖最后由 phinex 于 2016-4-13 16:33 编辑

Lenka.Guo 发表于 2016-4-1 17:19
项目升级之后,是否有修改过AR相关的文件?

通常情况下,开发机器中报Error #2032 错误,通常有两种原因 ...
开发机器也是这样的问题

Lenka.Guo 发表于 2016-4-13 16:53:03

phinex 发表于 2016-4-13 16:31
开发机器也是这样的问题

现在是报#2032 和License不正确的错误吗?
因为您是项目升级之后报错,请问是将ActiveReports从旧版本升级到新版本了吗?

如果是将AR升级之后报错,需要您注意两点:

1. 更新所有ActiveReports 相关的dll文件,升级为当前版本。
升级操作,使用VS的工具菜单->转换为ActiveReports 9; 一键升级。

添加新报表,自动添加dll引用。

2. 更新Grapecity.ActiveReports.Flash.v10.Resources.swf 为当前的AR版本。可在安装目录下找到:C:\Program Files (x86)\GrapeCity\ActiveReports 10\Deployment\Flash

phinex 发表于 2016-4-13 17:22:18

本帖最后由 phinex 于 2016-4-13 17:30 编辑

重新生成了License,现在是出现Failed to read past end of stream.这个错误,然而导出word,和导出Excel都是正常的

Lenka.Guo 发表于 2016-4-14 11:30:37

phinex 发表于 2016-4-13 17:22
重新生成了License,现在是出现Failed to read past end of stream.这个错误,然而导出word,和导出Excel都 ...

因为之前还未有用户遇到此类问题,能提供详细的错误截图吗?或是能够重现您问题的示例程序?我在这边测试验证是什么原因导致的。

phinex 发表于 2016-4-14 17:35:48

Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:37550/ActiveReports.ar10?Token=0b60d0b4-09cc-4cd6-9a3e-ffe864e8da15&Generation=1&Page=1&WebViewerControlClientId=WebViewer1&HtmlViewer=true
升级到10后。旧项目无法引用该项。但是新项目全部是正常的

Lenka.Guo 发表于 2016-4-15 09:36:56

phinex 发表于 2016-4-14 17:35
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:375 ...

您好,
需要跟您确认的是:
1,版本升级后,升级后的项目是否运行正常?
2,Failed to load resource: the server responded with a status of 404 (Not Found);旧项目无法引用,您是在旧版本的项目中来访问该资源吗?因为访问的资源URL 中包含AR10 版本号,旧项目是AR9,版本号不一致,这个肯定是无法访问的。
页: [1] 2
查看完整版本: IIS7发布出现问题