我正在使用Microsoft.Reporting.Webforms版本10来解析RDLC文件并生成PDF。 RDLC是一个简单的发票,其中包含一些嵌入式表达式。
当我运行应用程序时,会出现异常,指出在编译表达式时已经调用了过时的SecurityAction.RequestMinimum。
这是一个已知的错误还是我可以解决的问题?
在编译表达式时发生意外错误。本地编译器返回值:“[BC40000] 'RequestMinimum'已过时:程序集级别的声明性安全已过时,并且默认情况下不再由CLR执行。有关更多信息,请参见http://go.microsoft.com/fwlink/?LinkID=155570。”。 在Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)处 在Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase itemContext)处 在Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context, Boolean rebuild, Byte[]& reportDefinition, ControlSnapshot& snapshot)处 在Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context, Boolean rebuild, ControlSnapshot& snapshot)处 在Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase itemContext, Boolean rebuild, ControlSnapshot& snapshot)处 在Microsoft.Reporting.LocalService.CompileReport(CatalogItemContextBase itemContext, Boolean rebuild)处 在Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()处
当我运行应用程序时,会出现异常,指出在编译表达式时已经调用了过时的SecurityAction.RequestMinimum。
这是一个已知的错误还是我可以解决的问题?
在编译表达式时发生意外错误。本地编译器返回值:“[BC40000] 'RequestMinimum'已过时:程序集级别的声明性安全已过时,并且默认情况下不再由CLR执行。有关更多信息,请参见http://go.microsoft.com/fwlink/?LinkID=155570。”。 在Microsoft.Reporting.ReportCompiler.CompileReport(ICatalogItemContext context, Byte[] reportDefinition, Boolean generateExpressionHostWithRefusedPermissions, ControlSnapshot& snapshot)处 在Microsoft.Reporting.PreviewStore.StoredReport.EnsureCompiled(CatalogItemContextBase itemContext)处 在Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context, Boolean rebuild, Byte[]& reportDefinition, ControlSnapshot& snapshot)处 在Microsoft.Reporting.PreviewStore.GetCompiledReport(CatalogItemContextBase context, Boolean rebuild, ControlSnapshot& snapshot)处 在Microsoft.Reporting.LocalService.GetCompiledReport(CatalogItemContextBase itemContext, Boolean rebuild, ControlSnapshot& snapshot)处 在Microsoft.Reporting.LocalService.CompileReport(CatalogItemContextBase itemContext, Boolean rebuild)处 在Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()处