Can I use Telerik.Reporting in AWS Lambda?

1 Answer 66 Views
Licensing Programming Rendering
Adrian
Top achievements
Rank 1
Adrian asked on 04 Sep 2024, 04:30 PM

I'm trying to use Telerik.Reporting 14.1.20.618 in a NET 8 AWS Lambda. The lambda project makes reference to another class library where there's also a reference to Telerik.Reporting, but whenever I try to generate a report, I keep getting the following error message:

Could not load file or assembly 'Telerik.Reporting, Version=14.1.20.618, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'. An operation is not legal in the current state. (0x80131509)



Resolved assembly's simple name should be the same as of the requested assembly.
   at System.Runtime.Loader.AssemblyLoadContext.ValidateAssemblyNameWithSimpleName(Assembly assembly, String requestedSimpleName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
   at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)



I assume it shouldn't be a compatibility issue since that Telerik version supports standard 2.0

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Sep 2024, 02:12 PM

Hello Adrian,

The first version of Telerik Reporting with support for .NET 8 is Telerik Reporting - ProgressĀ® TelerikĀ® Reporting R3 2023 SP1 (17.2.23.1114). You will likely need to update to this version to be able to fully use Telerik Reporting with .NET 8 target framework.

Additionally, based on the provided information, I cannot determine if both the lambda project and the class library have references to reporting assemblies. If they do, please ensure that both reference the same version.

Generally, you need to reference the Telerik Reporting assemblies only in the places where you are rendering the reports and/or where the report definitions are residing if they are .CS reports. 

I confirm that Telerik Reporting supports .NET Standard 2.0 as many of our assemblies are built for this target framework, you may check in the installation folder of the product - C:\Program Files (x86)\Progress\Telerik Reporting <Release>\Bin\netstandard2.0.

Depending on the environment's OS, for example, if it is Linux, you may need to install additional dependencies - Using Telerik Reporting with .NET 6+ or Standard - Telerik Reporting.

I hope that the provided information will help. Please let me know if you have any other questions.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Licensing Programming Rendering
Asked by
Adrian
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or