Lenka.Guo 发表于 2017-7-14 12:08:34

会尽快给您答复

504385214 发表于 2017-7-14 14:21:13

Lenka.Guo 发表于 2017-7-14 12:08
会尽快给您答复

好的。谢谢,请尽快

Lenka.Guo 发表于 2017-7-14 16:39:32

本帖最后由 Lenka.Guo 于 2017-7-14 16:49 编辑

您好,是否修改Web.config文件的PublicurL? 能否将修改的截图发给我,另外修改完成之后请重启I网站,并对网页进行强刷,清楚缓存。
reportService: { url: 'http://reverse-proxy.com'; };

<ActiveReports11>
<WebService publicURI="https://reverse-proxy.com"/>
</ActiveReports11>

504385214 发表于 2017-7-14 17:58:26

Lenka.Guo 发表于 2017-7-14 16:39
您好,是否修改Web.config文件的PublicurL? 能否将修改的截图发给我,另外修改完成之后请重启I网站,并对网 ...

公网可以了!修改weconfig就可以。
但是内网又不行了啊

504385214 发表于 2017-7-14 17:58:37

Lenka.Guo 发表于 2017-7-17 09:59:13

您好,
这个错误是很常见的Web 跨域请求错误,需要在Web.config文件里面添加
<httpProtocol>
      <customHeaders>
                <add name="Access-Control-Allow-Origin" value="*" />
                <add name="Access-Control-Allow-Headers" value="AuthToken, Authorization, Origin, Content-Type, Accept, X-Requested-With" />
      </customHeaders>
</httpProtocol>

504385214 发表于 2017-7-17 10:59:21

问题是解决了!!只不过感觉怪怪的!每次还要去config配置公网地址,还有就是内网访问这个也是走的公网。始终感觉怪怪的

Lenka.Guo 发表于 2017-7-17 11:46:47

解决了就好,修改Web.cofig就是为了避免获取内网资源而导致无法正常加载报表。
下面是H5的设置分享:

accessPointIt is the path to report service descriptor. This setting should be used in a Web Viewer to override the default web service. This setting is only required for Web/Flash Viewer.<ActiveReports11>
<WebService accessPoint="http.../*.asmx" />
</ActiveReports11>
reportsFolderIt is the relative path to reports on the server. Supported in all viewers.
<ActiveReports11>
<WebService reportsFolder="~" />
</ActiveReports11>
publicURIIt is a special setting to support redirection because report service results contain absolute URIs. Supported in all viewers.<ActiveReports11>
<WebService publicURI="http.../" />
</ActiveReports11>
reportLifetimeIt is the current report lifetime if the report tab is not closed. The default report lifetime is 10 minutes, but it can be set to any value. It is not recommended to make the report lifetime less than 2 minutes. Supported in all viewers.<ActiveReports11>
<WebService reportLifetime="00:10:00" />
</ActiveReports11>
maxReportLifetimeIt is the maximum allowed report lifetime, after which the report is destroyed on the server. The default maximum report lifetime is 24 hours; it can be set to any value. Supported in all viewers.<ActiveReports11>
<WebService maxReportLifetime="24:00:00" />
</ActiveReports11>
assemblyFolderIt is the temporary folder path, specified only if required. Supported in all viewers.<ActiveReports11>
<WebService assemblyFolder="~" />
</ActiveReports11>

页: 1 2 [3]
查看完整版本: AR11,发布服务器,映射公网,报表数据展示失败