I have a lot of reports with Microsoft Report. I have migrated all my other projects to ASP.NET Core
v. 3.1. I want to keep my report in rdcl
because are easy to update in Visual Studio.
In my solution I added
<ItemGroup>
<PackageReference Include="Microsoft.ReportingServices.ReportViewerControl.WebForms" Version="150.1404.0" />
<PackageReference Include="Microsoft.SqlServer.Types" Version="14.0.1016.290" />
</ItemGroup>
I noticed there are some warning in the packages. Understandable. The library is for .NET Framework not for .NET Core.
However, the project is compiling correctly. When I try to render the report, I have this error:
TypeLoadException: Could not load type 'System.Web.UI.WebControls.CompositeControl' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Looking around I found some libraries but none of them is working:
Any idea? In alternative, is there a way to generate PDF in an Azure Functions?