Issue with report viewer
helperman opened this issue · 3 comments
helperman commented
Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)
- WPF
- UWP
- iOS
- Android
- .NET Standard
- .NET Core
Component
Not sure
Version of Library
4.1.0
Version of OS(s) listed above with issue
Windows 8.1
dotnet --version: 5.0.102
Visual Studio 2019 v16.8.4
Steps to Reproduce
- install nuget package Microsoft.ReportingServices.ReportViewerControl.Winforms
- install Costura Fody
- add report-file: Add new item -> Report
- add reportViewer control to a form
- bind reportViewer with your report-file
Expected Behavior
An error occured during local report processing. The definition of the report " is invalid. An unexpected error occured in Report Processing. The type initializer for "Microsoft.Reporting.Services.ReportIntermediateFormat.Persistence.IntermediateFormatVersion" threw an exception. The path is not a legal form.
Actual Behavior
No errors expected
There is a post about the issue here:
https://stackoverflow.com/questions/57483850/error-when-embedding-report-viewer-dll-using-costura
GeertvanHorrik commented
- Can you show that you are supporting Fody on Open Collective?
- The solution in the SO post does not work for you?
- Have you tried any other reporting lib (e.g. Stimulsoft, which we have great experiences with, even with embedding assemblies).
helperman commented
- Probably not. I've used It once and I am not sure about using It in feature.
- It Works But it's not a solution since the asembly can't being injected into exe file
- No. But Maybe I have to think about It.
GeertvanHorrik commented
Please try Costura 5.1.