I am trying to upgrade an ASP.Net MVC (.net framework 4.6.1) application from Telerik Reporting R1 2020 to R1 2022 and can't even get the viewer to display. The error on screen says
Cannot access the Reporting REST service. (serviceUrl = '/api/reportsapi/'). Make sure the service address is correct and enable CORS if needed. (https://enable-cors.org)
When I open the browser developer tools I see the error has occurred on the call to api/reportsapi/version and the exception message is:
Multiple actions were found that match the request: \r\nFormats on type FWT.MVC.ReportsAPIController
Any idea where to even begin looking? The prior version worked flawlessly. We do have a custom report resolver because we change the connection string based on the tenant ID of the logged in user, but I have upgraded that.
I'm getting the same problem but with a Web Forms app that is using Web API. (Using HTML 5 Report Viewer) with standard ReportsController.cs
In my Global.asax.cs is this:
protected void Application_Start(object sender, EventArgs e)
{
RouteTable.Routes.MapHttpRoute(name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = System.Web.Http.RouteParameter.Optional });
As soon as I comment this code, reports start working again.
Even if I try to use something different than default route, error popups. Same version R1 2022.
Is this something related with this specific version?