Hi,
we try generating reports on the server simultaneously:
Parallel.ForEach(x, x =>
{
...
ReportProcessor.RenderReport(...);
....
}
and get the occasional exception below:
System.AggregateException: One or more errors occurred. ---> Telerik.Reporting.Processing.CancelProcessingException: An error occurred while evaluating the report parameters. Report source cannot be processed. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2, String path3)
at Telerik.Reporting.Interfaces.LocalizationContext.InitializeBucket(String resx)
at Telerik.Reporting.Interfaces.LocalizationContext.GetString(String resx, String key)
at Telerik.Reporting.Interfaces.StringsResolver.GetString(String key)
at Telerik.Reporting.SRDescriptionAttribute.get_Description()
at Telerik.Reporting.Expressions.EnumContextManager.GetItem(Type enumType)
at Telerik.Reporting.Processing.ReportExpressionContext.RegisterAllReportingEnums()
at Telerik.Reporting.Processing.ReportExpressionContext..ctor(Type reportType)
at Telerik.Reporting.Processing.ReportParametersManager`1.CreateExpressionContext(Report report, IList`1 runtimeParameters)
at Telerik.Reporting.Processing.ReportParametersManager`1..ctor(Report definitionReport, IEnumerable`1 definitionParameters, IDictionary`2 reportSourceParameters, IDataProviderContext dataProviderContext)
at Telerik.Reporting.Processing.DocumentParametersManager`1.CreateManager(Report definition, IDataProviderContext dataProviderContext, IParameterValueParser parameterValueParser, IDictionary`2 rsParameters)
at Telerik.Reporting.Processing.DocumentParametersManager`1.CreateManagers(IProcessingContext context, IParameterValueParser parameterValueParser)
at Telerik.Reporting.Processing.DocumentParametersManager`1..ctor(ResolvedReportDocument resolvedReports, IProcessingContext processingContext, IParameterValueParser parameterValueParser)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReportSource(ReportSource reportSource, IRenderingContext context)
--- End of inner exception stack trace ---
at Telerik.Reporting.Processing.ReportProcessor.ProcessReportSource(ReportSource reportSource, IRenderingContext context)
at Telerik.Reporting.Processing.ReportProcessor.ProcessReportSource(ReportSource reportSource, Hashtable deviceInfo, IRenderingContext context)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
All the reporting assemblies are the latest.
Can the issue be related to?:
https://www.telerik.com/forums/is-the-reportprocessor-renderreport-function-thread-safe
Thank you,
Vlad