Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation fails when run through a single-file .exe #49

Closed
aaronhudon opened this issue Jun 1, 2021 · 2 comments
Closed

Generation fails when run through a single-file .exe #49

aaronhudon opened this issue Jun 1, 2021 · 2 comments

Comments

@aaronhudon
Copy link

Very strange behavior observed. When running the project as an single .exe in .NET 5.0, an exception occurs when rending the report.

Microsoft.Reporting.NETCore.LocalProcessingException: An error occurred during local report processing.
 ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report '' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion' threw an exception. ---> System.ArgumentException: The path is empty. (Parameter 'path')
   --- End of inner exception stack trace ---
   at Microsoft.Reporting.NETCore.LocalReport.EnsureExecutionSession()
   at Microsoft.Reporting.NETCore.LocalReport.SetParameters(IEnumerable`1 parameters)
@lkosson
Copy link
Owner

lkosson commented Jun 2, 2021

In single-exe deployment there are no .NET assemblies available at runtime. This means it is not possible for Roslyn to reference them and compile report expressions to executable format.

For now I don't see any meaningful workaround. Perhaps it could be possible to replace Roslyn with some sort of runtime expression interpreter, but that would break more complex reports anyway.

@aaronhudon
Copy link
Author

@lkosson thx for reply. too bad, i didn't think single-exe introduced such complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants