【发布时间】:2014-06-21 03:11:31
【问题描述】:
我希望这能帮助我解决这个问题。
我在使用 .net framework 4.5 和 ReportViewer 11 (Reporv Viewer 2012) 构建应用程序 (winforms) 时遇到问题。几周前,我使用 Windows Azure 进行部署并安装到客户端,但是当我运行报告时显示异常。
**An error occurred during local report processing.
Failed to load expression host assembly. Details: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)**
当我在网络 (LAN) 中部署时工作正常,但是当我通过 Internet 部署时出现此错误,此错误仅在我通过快捷方式 .appref-ms 启动应用程序时发生,但如果我启动应用程序执行 .exe文件正确显示报告。
其他人也有这个问题,如何解决?
谢谢。
【问题讨论】:
-
我遇到了同样的问题。我有一个 ClickOnce Winforms 应用程序,它可以正常工作,除非我从 ClickOnce 快捷方式启动它。如果我运行由 ClickOnce 安装在 profile\AppData\Local\Apps\2.0\ 等中的 exe,它甚至可以正常运行。我已将其缩小到 rdlc 报告中的表达式。我可以成功地运行一个只有带有一些静态文本的文本框的报告,但是一旦我将文本转换为诸如“aaa”和“bbb”之类的表达式,它就会出错我猜它与权限有关.
标签: c# winforms .net-4.5 clickonce reportviewer