ARV10.2按示例创建报表总是有问题
本帖最后由 Lenka.Guo 于 2016-9-1 11:14 编辑按示例步骤完成http://blog.gcpowertools.com.cn/post/2015/07/31/HTML5MVC5.aspx
运行总是出现问题,请看一下原因。
看看能不能完善一下,解决此问题。(估计是webconfig 或 引用dll的问题)
代码中几处有误,需要修改:
1. 修改 Web.config 文件 将ActiveReports 10 节点中的内容改为:
<ActiveReports10>
<WebService reportsFolder="~/" assemblyFolder="~/" />
</ActiveReports10>
2. 修改RouteConfig.cs 文件:
routes.IgnoreRoute("<font color="#ff0000">ARreport/</font>ActiveReports.ReportService.asmx/{*pathInfo}");defaults: new { controller = "Index", action = "Index", id = UrlParameter.Optional }
3. 修改Index.cshtml 文件
report: {
id: "ARreport/RdlReport1.rdlx"
},
reportService: {
url: 'ARreport/ActiveReports.ReportService.asmx'
},
程序:(下载之后,使用Vs 菜单 工具——转换为ActiveReports 10 转换为当前版本)
http://pan.baidu.com/s/1i46EZYl
补充一下,开发环境:
vs2012+mvc4+AR10.2 测试过后,问题原因为,路由问题:
解决办法:
routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
改为
routes.IgnoreRoute("ARreport/ActiveReports.ReportService.asmx/{*pathInfo}");
其他的没影响 。
谢谢答复。 测试过后,问题原因为,路由问题:
解决办法:
routes.IgnoreRoute("ActiveReports.ReportService.asmx/{*pathInfo}");
改为
routes.IgnoreRoute("ARreport/ActiveReports.ReportService.asmx/{*pathInfo}");
其他的没影响 。
谢谢答复。 rcsy001 发表于 2016-9-1 14:46
测试过后,问题原因为,路由问题:
解决办法:
不谢~ 可以结了 rcsy001 发表于 2016-9-1 16:09
可以结了
好的
页:
[1]