Page 1 of 1

Report compilation error with version 2021.1.2

Posted: Mon Feb 15, 2021 8:33 am
by ChrisDA
Hi,

after upgrading to Stimulsoft.Reports.Engine.NetCore version 2021.1.2 we get a report compilation error (see below).
Version 2021.1.1 shows the same problem.

This happens on both .NET Core 3.1 and .NET 5.0.

Code: Select all

System.Exception: Compilation error: The type name 'FileSystemRights' could not be found in the namespace 'System.Security.AccessControl'. This type has been forwarded to assembly 'System.IO.FileSystem.AccessControl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
Cannot convert type 'object' to 'FileSystemRights?'

at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate, Object standaloneReportType)
at Stimulsoft.Report.StiReport.Compile(String path, Stream stream, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType, Boolean autoCreate)
at Stimulsoft.Report.StiReport.Compile(String path, StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile(StiOutputType outputType)
at Stimulsoft.Report.StiReport.Compile()
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)

Version 2020.5.2 does not have this problem and still works.

Thanks in advance!

Chris

Re: Report compilation error with version 2021.1.2

Posted: Mon Feb 15, 2021 10:22 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Report compilation error with version 2021.1.2

Posted: Thu Feb 18, 2021 9:38 am
by ChrisDA
Hi,

we've managed to fix the problem by adding System.IO.FileSystem.AccessControl.dll to the ReferencedAssemblies.

I don't know why it worked before without that reference, but it does the trick now.

Re: Report compilation error with version 2021.1.2

Posted: Fri Feb 19, 2021 7:45 am
by Lech Kulikowski
Hello,

Ok. Thank you for the information.