This is a migrated thread and some comments may be shown as answers.

unable to get report parameters in Telerik.Reporting on ISS Server

1 Answer 783 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Esteban
Top achievements
Rank 1
Esteban asked on 10 Nov 2020, 05:18 PM

Hi.

I have a problem with Telerik Reporting.

Everything works fine when working under a Visual Studio instance, but when I make a deploy to my IIS Server it sends me the error that the parameters cannot be obtained. I install on my server Telerik Report Designer R2 2017 and Fiddler to catch the error.

{"message":"","exceptionMessage":"Report '%7B%22ReportType%22%3A1%2C%22Id%22%3A%22c5c93e92f97d409a8c73fd0dd7eef3cc%22%7D' cannot be resolved.","exceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException","stackTrace":"   in Telerik.Reporting.Services.Engine.ReportEngine.ResolveReportSource(String report)\r\n   in Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n   in Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\r\n   in lambda_method(Closure , Object , Object[] )\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   en System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()"}

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 13 Nov 2020, 02:26 PM

Hi Esteban,

Thank you for providing the error. After reviewing it, I can see that there's a problem with the ReportSource Resolver.

{"message":"","exceptionMessage":"Report '%7B%22ReportType%22%3A1%2C%22Id%22%3A%22c5c93e92f97d409a8c73fd0dd7eef3cc%22%7D' cannot be resolved.","exceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException","stackTrace":"   in Telerik.Reporting.Services.Engine.ReportEngine.ResolveReportSource(String report)\r\n   in Telerik.Reporting.Services.Engine.ReportEngine.GetParameters(String clientID, String report, Dictionary`2 parameterValues)\r\n   in Telerik.Reporting.Services.WebApi.ReportsControllerBase.GetParameters(String clientID, ClientReportSource reportSource)\r\n   in lambda_method(Closure , Object , Object[] )\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n   in System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   en System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack tracking from the previous location where the exception occurred ---\r\n   in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   in System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()"}

The reason for this is the path for the reports is likely not defined correctly and the viewer can't find the reports in the folder that it's looking in.

Below are two articles that can be used as a reference on how to set up the ReportSource properly:

- Report Sources

- How to set up Report Source for the Report Viewer

I hope that this information helps solve the issue and if you have any further questions please don't hesitate to ask!

Regards,

Dimitar Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Esteban
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or