Hello.
I want to save a report as an pdf-document. Herefore I use following code:
This actually works on the working machine debugged with VS2010. But when I want to use this as published version on the server the following error occurs (on rendering the report):
May you have a solution or some hints for me what errors could have this exception in consequence?
Thanks.
Best regards
David
I want to save a report as an pdf-document. Herefore I use following code:
try{ ReportProcessor reportProcessor = new ReportProcessor(); RenderingResult result = reportProcessor.RenderReport("PDF", report, null); using (FileStream fs = new FileStream(fileName, FileMode.Create)) { fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); }}catch (Exception ex){ return false;}This actually works on the working machine debugged with VS2010. But when I want to use this as published version on the server the following error occurs (on rendering the report):
MESSAGE: ExtensionParameter Unit on extension type Telerik.Reporting.ExcelRendering.Excel97.ExcelReport, Telerik.Reporting, Version=5.1.11.713, Culture=neutral, PublicKeyToken=a9d7983dfcc261be can not assign the specified value. - Stacktrace: bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 408. bei V10Portal.Core.ScheduledJobs.SendReportJob.logSaveReports(String& logErrorIn, String reportsPath, List`1 reportsToSend) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 701. bei V10Portal.Core.ScheduledJobs.SendReportJob.Run() in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 186.STACKTRACE:bei Telerik.Reporting.Interfaces.Attributes.ExtensionParameterAttribute.Apply(ExtensionInfo extInfo) bei Telerik.Reporting.Processing.ExtensionInfo.Create(Type extensionType, String extensionName) bei Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) bei Telerik.Reporting.Processing.ExtensionManagerBase.Load(ExtensionInfoCollection extensions, IEnumerable`1 extensionTypeNames) bei Telerik.Reporting.Processing.ExtensionManagerBase..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection section) bei Telerik.Reporting.Processing.ExtensionManager.get_Instance() bei Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType) bei Telerik.Reporting.Processing.ReportProcessor.GetRenderer(String name) bei Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) bei Telerik.Reporting.Processing.ReportProcessor.RenderReportStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) bei Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo) bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 404. - Stacktrace: bei V10Portal.Core.ScheduledJobs.SendReportJob.saveReportOnHarddisk(Report report, String fileName) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 408. bei V10Portal.Core.ScheduledJobs.SendReportJob.logSaveReports(String& logErrorIn, String reportsPath, List`1 reportsToSend) in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 702. bei V10Portal.Core.ScheduledJobs.SendReportJob.Run() in F:\V10Portal\V10Portal.Core\ScheduledJobs\SendReportJob.cs:Zeile 186.May you have a solution or some hints for me what errors could have this exception in consequence?
Thanks.
Best regards
David