Telerik 报告错误 Telerik.Reporting.ReportSerialization.Current.ReportSerializable

Telerik report error Telerik.Reporting.ReportSerialization.Current.ReportSerializable

提问人:Sayed Uz Zaman 提问时间:4/5/2023 更新时间:4/5/2023 访问量:130

问:

我在尝试将其部署在基于 linux 的 docker 容器中时收到这个奇怪的错误。虽然当我在 Windows 机器上从 Visual Studio 运行应用程序时,它工作正常,但在部署报告后抛出此错误:

Parameters(System.String, Telerik.Reporting.Services.AspNetCore.ClientReportSource) on controller Company.ReportAPI.Controllers.ReportsController (Company.ReportAPI).
   at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type, String name)
   at Telerik.Reporting.Serialization.ObjectReader.CreateInstance(Type type)
   at Telerik.Reporting.Serialization.ObjectReader.ReadObject(Type type)
   at Telerik.Reporting.Serialization.ObjectReader.ReadXmlElement(String name)
   at Telerik.Reporting.Serialization.ObjectReader.Deserialize(IResourceHandler handler)
   at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(XmlReader reader, IResourceHandler resourceHandler)
   at Telerik.Reporting.XmlSerialization.XmlSerializerBase.Deserialize(Stream stream, IResourceHandler resourceHandler)
   at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Telerik.Reporting.ReportSerialization.IXmlSerializer.Deserialize(Stream stream, IResourceHandler reso
urceHandler)
   at Telerik.Reporting.ReportPackager.UnpackageDocument(Stream packageStream)
   at Telerik.Reporting.Processing.UriReportDocumentResolver.Resolve(IProcessingContext context, UriReportSource rs)
   at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IProcessingContext context, ReportSource
rs)
   at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass0_0.<Resolve>b__0(IReportDocumentResolver r)
   at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](IProcessingContext context, ReportSource source, Func`2 func)
   at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IProcessingContext context, ReportSource source)
   at Telerik.Reporting.Processing.ResolvedReportDocument.ResolveReportsRecursively(ReportSource rs, IProcessingContext context, IDictionary`2 parentRsParameters,
 Boolean parentShouldDispose, List`1 result, IReportDocument& definition, ResolvedReport& tocReport, ReportBookTocPosition& tocReportPosition)
   at Telerik.Reporting.Processing.ResolvedReportDocument.Create(ReportSource rs, IProcessingContext context)
   at Telerik.Reporting.Processing.DocumentParametersManager`1..ctor(ReportSource definition, IProcessingContext processingContext, IParameterValueParser paramete
rValueParser)
   at Telerik.Reporting.Processing.DocumentParametersManager..ctor(ReportSource rs, IProcessingContext processingContext, IParameterValueParser parameterValuePars
er)
   at Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)
   at Telerik.Reporting.Services.AspNetCore.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)
   at Company.ReportAPI.Controllers.ReportsController.GetParameters(String clientID, ClientReportSource reportSource) in /app/Company.ReportAPI/Controllers/ReportsContr
oller.cs:line 27

C# Reporting-Services Telerik-Reporting

评论

0赞 K. B. 4/6/2023
什么是目标框架。.NET7?
0赞 Sayed Uz Zaman 4/8/2023
目标框架是 .net core 3.1

答: 暂无答案