Error with Telerik Reporting Trial after publising to Test Environment

2 Answers 102 Views
.NET Core General Discussions Rest Service Serialization
Gonzalo
Top achievements
Rank 1
Iron
Gonzalo asked on 19 Feb 2024, 06:10 AM

While developing an endpoint (.NET 6 API) to export a PDF from a TRDX file ( no problems here ) I decided to publish to the test environment.

I keep getting this error :

 

2024-02-19T06:04:14.518155356Z System.MissingMethodException: Type: Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1[Telerik.Reporting.Report]
2024-02-19T06:04:14.518227356Z ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
2024-02-19T06:04:14.525815894Z ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
2024-02-19T06:04:14.525839694Z ---> System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Drawing.Unit' threw an exception.
2024-02-19T06:04:14.525845694Z ---> Telerik.Drawing.Contract.DrawingFactoryUnavailableException: Cannot load assembly Telerik.Drawing.Skia. Make sure it is accessible in the current application domain.
2024-02-19T06:04:14.525850094Z at Telerik.Drawing.Contract.DrawingFactory.GetFactoryBase(String factoryTypeName, String factoryAssemblyName, Boolean assemblyLoaded)
2024-02-19T06:04:14.525854594Z at Telerik.Drawing.Contract.DrawingFactory.GetSkiaInstance()
2024-02-19T06:04:14.525858494Z at Telerik.Drawing.Contract.DrawingFactory.TryResolveFromRuntime()
2024-02-19T06:04:14.525862394Z at Telerik.Drawing.Contract.DrawingFactory.ResolveDrawingFactory()
2024-02-19T06:04:14.525866094Z at Telerik.Drawing.Contract.DrawingFactory.CreateDrawingFactory()
2024-02-19T06:04:14.525869694Z at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
2024-02-19T06:04:14.525873394Z at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
2024-02-19T06:04:14.525877094Z at System.Lazy`1.CreateValue()
2024-02-19T06:04:14.525880593Z at System.Lazy`1.get_Value()
2024-02-19T06:04:14.525884293Z at Telerik.Drawing.Contract.DrawingFactory.get_Instance()
2024-02-19T06:04:14.525887893Z at Telerik.Reporting.Drawing.Unit.GetDotsPerInch()
2024-02-19T06:04:14.525891493Z at Telerik.Reporting.Drawing.Unit.ResetDpiSettings()
2024-02-19T06:04:14.525895093Z at Telerik.Reporting.Drawing.Unit..cctor()
2024-02-19T06:04:14.525898593Z --- End of inner exception stack trace ---
2024-02-19T06:04:14.525902093Z at Telerik.Reporting.Drawing.Unit.Cm(Int32 value)
2024-02-19T06:04:14.525924393Z at Telerik.Reporting.Report..ctor()
2024-02-19T06:04:14.525929493Z at System.RuntimeType.CreateInstanceOfT()
2024-02-19T06:04:14.525933093Z --- End of inner exception stack trace ---
2024-02-19T06:04:14.525936593Z at System.RuntimeType.CreateInstanceOfT()
2024-02-19T06:04:14.525940093Z at System.Activator.CreateInstance[T]()
2024-02-19T06:04:14.525943593Z at Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1..ctor(IConvertersContainer converters)
2024-02-19T06:04:14.525947293Z --- End of inner exception stack trace ---
2024-02-19T06:04:14.525950893Z at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
2024-02-19T06:04:14.525954893Z at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2024-02-19T06:04:14.525959993Z at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
2024-02-19T06:04:14.525963993Z at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
2024-02-19T06:04:14.564619278Z at System.Activator.CreateInstance(Type type, Object[] args)
2024-02-19T06:04:14.564649677Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type, String name)
2024-02-19T06:04:14.564655577Z --- End of inner exception stack trace ---
2024-02-19T06:04:14.564659977Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type, String name)
2024-02-19T06:04:14.564663977Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type)
2024-02-19T06:04:14.564668077Z at Telerik.Reporting.Serialization.ObjectReader.ReadObject(Type type)
2024-02-19T06:04:14.564672077Z at Telerik.Reporting.Serialization.ObjectReader.ReadXmlElement(String name)
2024-02-19T06:04:14.564675877Z at Telerik.Reporting.Serialization.ObjectReader.Deserialize(IResourceHandler handler)
2024-02-19T06:04:14.564679577Z at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(XmlReader reader, IResourceHandler resourceHandler)
2024-02-19T06:04:14.564683477Z at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(Stream stream, IResourceHandler resourceHandler)

2024-02-19T06:04:14.564687177Z at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(Stream stream)

 

Is this error related to the Trial version or is there anything else?

2 Answers, 1 is accepted

Sort by
0
Gonzalo
Top achievements
Rank 1
Iron
answered on 20 Feb 2024, 08:02 AM

I upgraded from .NET 6 to .NET 7 and now I'm getting this error:



2024-02-20T07:59:44.202906390Z System.MissingMethodException: Type: Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1[Telerik.Reporting.Report]

2024-02-20T07:59:44.203025589Z ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
2024-02-20T07:59:44.204825683Z ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
2024-02-20T07:59:44.204840783Z ---> System.TypeInitializationException: The type initializer for 'Telerik.Reporting.Drawing.Unit' threw an exception.
2024-02-20T07:59:44.204845883Z ---> Telerik.Drawing.Contract.DrawingFactoryUnavailableException: Cannot load assembly Telerik.Drawing.Skia. Make sure it is accessible in the current application domain.
2024-02-20T07:59:44.240698559Z at Telerik.Drawing.Contract.DrawingFactory.GetFactoryBase(String factoryTypeName, String factoryAssemblyName, Boolean assemblyLoaded)
2024-02-20T07:59:44.240775259Z at Telerik.Drawing.Contract.DrawingFactory.GetSkiaInstance()
2024-02-20T07:59:44.240781359Z at Telerik.Drawing.Contract.DrawingFactory.TryResolveFromRuntime()
2024-02-20T07:59:44.240785459Z at Telerik.Drawing.Contract.DrawingFactory.ResolveDrawingFactory()
2024-02-20T07:59:44.240789359Z at Telerik.Drawing.Contract.DrawingFactory.CreateDrawingFactory()
2024-02-20T07:59:44.240793459Z at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
2024-02-20T07:59:44.240797259Z at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
2024-02-20T07:59:44.240801159Z at System.Lazy`1.CreateValue()
2024-02-20T07:59:44.241694356Z at Telerik.Drawing.Contract.DrawingFactory.get_Instance()
2024-02-20T07:59:44.241721055Z at Telerik.Reporting.Drawing.Unit.GetDotsPerInch()
2024-02-20T07:59:44.241725955Z at Telerik.Reporting.Drawing.Unit.ResetDpiSettings()
2024-02-20T07:59:44.241729755Z at Telerik.Reporting.Drawing.Unit..cctor()
2024-02-20T07:59:44.241733755Z --- End of inner exception stack trace ---
2024-02-20T07:59:44.241751455Z at Telerik.Reporting.Drawing.Unit.Cm(Int32 value)
2024-02-20T07:59:44.241755755Z at Telerik.Reporting.Report..ctor()
2024-02-20T07:59:44.241759555Z at System.RuntimeType.CreateInstanceOfT()
2024-02-20T07:59:44.241763355Z --- End of inner exception stack trace ---
2024-02-20T07:59:44.241767155Z at System.RuntimeType.CreateInstanceOfT()
2024-02-20T07:59:44.241770955Z at System.Activator.CreateInstance[T]()
2024-02-20T07:59:44.241774855Z at Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1..ctor(IConvertersContainer converters)
2024-02-20T07:59:44.241778955Z at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
2024-02-20T07:59:44.241782955Z at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
2024-02-20T07:59:44.241786855Z --- End of inner exception stack trace ---
2024-02-20T07:59:44.241790755Z at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
2024-02-20T07:59:44.241794755Z at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2024-02-20T07:59:44.241799055Z at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
2024-02-20T07:59:44.241802955Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type, String name)
2024-02-20T07:59:44.241806955Z --- End of inner exception stack trace ---
2024-02-20T07:59:44.241811355Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type, String name)
2024-02-20T07:59:44.241815455Z at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type)
2024-02-20T07:59:44.241819355Z at Telerik.Reporting.Serialization.ObjectReader.ReadObject(Type type)
2024-02-20T07:59:44.241823255Z at Telerik.Reporting.Serialization.ObjectReader.ReadXmlElement(String name)
2024-02-20T07:59:44.241843155Z at Telerik.Reporting.Serialization.ObjectReader.Deserialize(IResourceHandler handler)
2024-02-20T07:59:44.241847355Z at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(XmlReader reader, IResourceHandler resourceHandler)
2024-02-20T07:59:44.241851355Z at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(Stream stream, IResourceHandler resourceHandler)
2024-02-20T07:59:44.241856055Z at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(Stream stream)
0
Dimitar
Telerik team
answered on 20 Feb 2024, 12:42 PM

Hello Gonzalo,

Thank you for the provided information on the issue.

This issue appears when the Telerik.Drawing.Skia NuGet package is not installed on the project running the Reporting REST Service.

Please refer to the Deploying on Linux - Skia Engine article for details on how to set up your project and environment for the new Skia engine.

Let me know if you need further assistance on this.

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
.NET Core General Discussions Rest Service Serialization
Asked by
Gonzalo
Top achievements
Rank 1
Iron
Answers by
Gonzalo
Top achievements
Rank 1
Iron
Dimitar
Telerik team
Share this question
or