Html Reporting Viewer stopped to work

2 posts, 0 answers
  1. rafi
    rafi avatar
    31 posts
    Member since:
    Mar 2014

    Posted 27 Jun 2018 Link to this post

    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





  2. Nasko
    Admin
    Nasko avatar
    1067 posts

    Posted 28 Jun 2018 Link to this post

    Hello Chani,

    The error messages above might mean that either the file storage got corrupted, or you are using the Reporting REST service in a multiple-instance environment and the default implementation of the REST service storage (FileStorage) is not suitable for a multiple-instance environment. I can offer three approaches to try to resolve this:

    1. If using a web farm environment change the storage to use a MsSqlServerStorage or RedisStorage implementation - IStorage implementation suitable for deploying in Web Farms.

    2. If you are using a single-instance environment, but still receive exceptions, then maybe the file storage became corrupted. You can reset the report viewer storage data by setting a custom location for it using the second overload of the FileStorage constructor linked above.

    3. Upgrade to the latest version of Telerik Reporting where we included many improvements and test if the issues go away.

    Regards,
    Nasko
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top