【问题标题】:ssrs System.IO.File.Exists works well on local but not working on serverssrs System.IO.File.Exists 在本地运行良好,但在服务器上运行不正常
【发布时间】:2016-07-21 16:35:12
【问题描述】:

我有一个 Sql 报告 (ssrs)。对于图像,我使用 System.IO.File.Exists 检查文件(UNC 路径)是否存在。它在我的本地运行良好,但在我上传到服务器后,它总是返回 false。

有什么建议吗?

【问题讨论】:

标签: sql-server reporting-services system.io.file


【解决方案1】:

我发现我们需要在服务器端更改 Report_Expressions_Default_Permissions。

问题解决了

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8ab26a11-af38-44f1-9010-b4f8354a4e14/systemiofileexists-not-working?forum=sqlreportingservices

【讨论】:

  • 为了进一步说明,可以在以下文件中找到相关设置:C:\Program Files\Microsoft SQL Server\MSRS[version #].MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-06-16
  • 1970-01-01
  • 1970-01-01
  • 2020-02-25
  • 1970-01-01
  • 1970-01-01
  • 2013-06-08
相关资源
最近更新 更多