Report compilation error with version 2021.1.2

Stimulsoft Reports.WEB discussion
Post Reply
ChrisDA
Posts: 10
Joined: Wed Oct 12, 2016 8:09 am

Report compilation error with version 2021.1.2

Post 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
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report compilation error with version 2021.1.2

Post by Lech Kulikowski »

Hello,

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

Thank you.
ChrisDA
Posts: 10
Joined: Wed Oct 12, 2016 8:09 am

Re: Report compilation error with version 2021.1.2

Post 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.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report compilation error with version 2021.1.2

Post by Lech Kulikowski »

Hello,

Ok. Thank you for the information.
Post Reply