RDLC 调用过时的 SecurityAction 枚举

发布于 2024-12-17 18:47:03 字数 1428 浏览 3 评论 0原文

我正在使用 Microsoft.Reporting.Webforms 版本 10 来解析 RDLC 文件并生成 PDF。 RDLC 是一个带有几个嵌入式表达式的简单发票。

当我运行应用程序时,出现异常,调用已过时的 SecurityAction.RequestMinimum 是在编译表达式时创建的。

这是一个已知的错误还是我可以修复的问题?

编译表达式时发生意外错误。本国的 编译器返回值:'[BC40000]'RequestMinimum'已过时: “程序集级别的声明式安全性已经过时,不再适用” 默认情况下由 CLR 强制执行。看 http://go.microsoft.com/fwlink/?LinkID=155570了解更多信息 信息。'.'.

位于 Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext 上下文、字节 [] 报告定义、布尔值 generateExpressionHostWithRefusedPermissions、ControlSnapshot& 快照) 在 Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase 项目上下文) 在 Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase 上下文、布尔重建、Byte[]&报告定义、控制快照& 快照) 在 Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase 上下文、布尔重建、ControlSnapshot&快照) 在 Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase itemContext、布尔重建、ControlSnapshot&快照) 在 Microsoft.Reporting.LocalService.CompileReport(CatalogItemContextBase itemContext,布尔重建) 在 Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()

I'm using Microsoft.Reporting.Webforms version 10 in order to parse an RDLC file and produce a PDF. The RDLC is a simple invoice with a couple of embedded expressions.

When I run the application I get an exception that a call to the obsoleted SecurityAction.RequestMinimum has been made when compiling the expressions.

Is this a known bug or something I can remedy?

An unexpected error occurred while compiling expressions. Native
compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete:
'Assembly level declarative security is obsolete and is no longer
enforced by the CLR by default. See
http://go.microsoft.com/fwlink/?LinkID=155570 for more
information.'.’.

at Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext
context, Byte[] reportDefinition, Boolean
generateExpressionHostWithRefusedPermissions, ControlSnapshot&
snapshot)
at Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase
itemContext)
at Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase
context, Boolean rebuild, Byte[]& reportDefinition, ControlSnapshot&
snapshot)
at Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase
context, Boolean rebuild, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase
itemContext, Boolean rebuild, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.CompileReport(CatalogItemContextBase
itemContext, Boolean rebuild)
at Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

踏月而来 2024-12-24 18:47:03

我也遇到了这个问题,结果发现,当表达式中存在语法错误时,它会显示此错误。

I also had this issue and by me it turned out that when there is a syntax error in an expression it displayed this error.

迟月 2024-12-24 18:47:03

我在尝试运行我们的一份报告时也遇到了这个问题。事实证明,该报告没有正确构建。尝试在 Visual Studio 中构建它发现了所有错误,在解决这些错误后,报告正常运行。如果您收到此错误,请仔细检查以确保您的报告确实生成。

I had this issue as well when trying to run one of our reports. It turns out that the report did not build properly. Attempting to build it in Visual Studio revealed all of the errors, and after I resolved them the report ran properly. If you get this error, double check to make sure that your report actually builds.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文