I have a Custom Csv Export class that implements IRenderingExtension. This works fine when the ReportServiceConfiguration.Storage is set to an instance of FileStorage or MsSqlServerStorage.
When using RedisStorage, after clicking on the CSV option from the Html5 Viewer's menu, the browser redirects to a new url to display the following error message:
{"message":"An error has occurred.","exceptionMessage":"Buffer cannot be null.\r\nParameter name: buffer","exceptionType":"System.ArgumentNullException","stackTrace":" at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)\r\n at System.IO.MemoryStream..ctor(Byte[] buffer)\r\n at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetDocument(String clientID, String instanceID, String documentID) in C:\\DeveloperTooling_Reporting_Agent1\\_work\\17\\s\\Source\\Code\\Telerik.Reporting.Services.WebApi\\ReportsControllerBase.cs:line 305\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
The debug console in Visual Studio shows this error:
Failed to load resource: the server responded with a status of 500 () [https://localhost:44350/api/reports/clients/9bbda764fa6/instances/722eb62b3a9/documents/969b05177e4f00b24938d1?response-content-disposition=attachment]