gpt4 book ai didi

vb.net - RDLC 调用过时的 SecurityAction 枚举

转载 作者:行者123 更新时间:2023-12-01 22:42:23 25 4
gpt4 key购买 nike

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

当我运行应用程序时,我收到一个异常,即调用已过时的 SecurityAction.RequestMinimum编译表达式时已创建。

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

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()

最佳答案

我也遇到了这个问题,事实证明,当表达式中存在语法错误时,它会显示此错误。

关于vb.net - RDLC 调用过时的 SecurityAction 枚举,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8244098/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com