Posted 13 March 2024, 8:50 am EST - Updated 13 March 2024, 8:51 am EST
Hello.
I have Active reports 17 with license, upgraded to 17.2.2, I can create most pdf reports, but I am getting error trying to create pdf with images.
System.TypeInitializationException: The type initializer for ‘ai5’ threw an exception. —>
System.IO.FileLoadException: Could not load file or assembly ‘System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or
one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at ai5.a()
at ai5…cctor()
— End of inner exception stack trace —
at ai5.b()
at ae7…ctor(afd A_0)
at ae7.a()
at System.Lazy
1.CreateValue() at System.Lazy
1.LazyInitValue()at System.Lazy
1.get_Value() at ae7..cctor() --- End of inner exception stack trace --- at ae7.w() at GrapeCity.Documents.Imaging.GcBitmap.Load(Stream stream, Int32 frameIndex, Nullable
1 imageRect)at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.I.?.?(Stream ?)
at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcImageConverterService.Convert(MemoryStream imageStream, ImageFormat allowedFormats, Boolean fixRotation)
at GrapeCity.ActiveReports.Controls.Image.TryConvertImage(MemoryStream stream, Image& image, IImageConverterService imageConverterService)
at GrapeCity.ActiveReports.Controls.Image…ctor(MemoryStream stream, IImageConverterService imageConverterService)
at GrapeCity.ActiveReports.SectionReportModel.Picture.set_ImageBytes(Byte value)
Thanks
NM