Using Telerik ReportViewer Q3 2015 SP2 v9.2.15.1126 in a MVC HTML5 website application. I am experiencing an intermittent error with the reportviewer.
"Error registering the viewer with the service. An error has occurred. String was not recognised as a valid DateTime."
This occurs when instantiating a report for the first time (starting the website up and running a report). However, rerunning the report immediately again I then get the expected result and it works fine without error, but the error is guaranteed to occur on every first time use....
Fiddler returns the following information:
{"message":"An error has occurred.","exceptionMessage":"String was not recognized as a valid DateTime.","exceptionType":"System.FormatException","stackTrace":" at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)\r\n at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)\r\n at Telerik.Reporting.Services.Engine.PersistableObject.GetDateTime(String key)\r\n at Telerik.Reporting.Services.Engine.Client.get_ExpiresOn()\r\n at Telerik.Reporting.Services.Engine.ReportEngine.<>c__DisplayClass16.<CollectExpiredData>b__10(Client c)\r\n at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\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__DisplayClass10.<GetExecutor>b__9(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.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at
System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"}
Anyone experienced this before? Any advice how to stop this from happening? We have tried the obvious things like clearing browser history etc...