hello,
I'm using Telerik Reporting HTML Viewer (telerikReportViewer-8.1.14.618.min.js).
In the server side I'm using Telerik.Reporting in c#.
All are work perfectly but once every few months all reports are stop working,
I get some http errors in some telerik reporting automatic requests.
Sometimes I got the error for the following request:
POST http://web.otech.co.il/otech/api/reports/clients
the response is:
System.ArgumentNullException Value cannot be null
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n
at Telerik.Reporting.Services.Engine.PersistableCollection`1.GetEnumerator()\r\n
at Telerik.Reporting.Services.Engine.ReportEngine.CollectExpiredData()\r\n
at Telerik.Reporting.Services.Engine.ReportEngine.RegisterClient()\r\n
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.RegisterClient()\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.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
Sometimes I got error 500 for the following request:
POST http://web.otech.co.il/otech/api/reports/clients/102530-76b8/instances
the response is:
System.ArgumentNullException Value cannot be null
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)\r\n
at Telerik.Reporting.Services.Engine.PersistableCollection`1.GetEnumerator()\r\n
at Telerik.Reporting.Services.Engine.KeyItemPersistableCollection`2.ResolveItem(K referredInstanceKey, Boolean& newItem)\r\n
at Telerik.Reporting.Services.Engine.ReportEngine.CreateReportInstance(String clientID, String report, Dictionary`2 parameterValues)\r\n
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.CreateInstance(String clientID, ClientReportSource reportSource)\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.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
Sometimes I got the error for the following request:
POST http://web.otech.co.il/otech/api/reports/clients/103331-358d/parameters
the response is:
Invalid report type
System.ArgumentException
at Telerik.Reporting.Processing.TypeReportDocumentResolver.Resolve(IProcessingContext context, TypeReportSource rs)\r\n
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve
(IProcessingContext context, ReportSource rs, Boolean loadParameters)\r\n
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)\r\n
at Telerik.Reporting.Services.Engine.DocumentResolver.ResolveReportDocument(ReportSource source, Boolean applyParameters)\r\n
at Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n
at Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\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.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)"}
This error is occurred on known report that worked perfectly before.
I'm try restart the IIS, restart the computer ant etc. , nothing helped.
When I copy the entire site directory and configure new site in IIS - It started work again.
Also, If I copy the entire site directory to another new directory and just configure the existing site to link to the new directory - also it started work..
Do you know what can be the reason of this problem? It's very worth for my customer to stop and recreate the site once every few months..
Thanks,
Chani