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

No type was found that matches the controller named 'reports'.

1 Answer 874 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mohammad
Top achievements
Rank 1
mohammad asked on 07 Dec 2015, 11:19 AM

Dears,

 I'm new to telerik reporting tools, after I walk through the tutorials and the demos I've keep getting the following error message when trying to view the report : No HTTP resource was found that matches the request URI 'http://localhost:28480/api/reports/formats'.  although I've registered the api route in the global.asax

ReportsControllerConfiguration.RegisterRoutes(GlobalConfiguration.Configuration);

my report controller class :

 using System.IO;
    using System.Web;
    using Telerik.Reporting.Cache.File;
    using Telerik.Reporting.Services;
    using Telerik.Reporting.Services.Engine;
    using Telerik.Reporting.Services.WebApi;

    public class ReportsController : ReportsControllerBase
    {
        static Telerik.Reporting.Services.ReportServiceConfiguration configurationInstance =
    new Telerik.Reporting.Services.ReportServiceConfiguration
    {
        HostAppId = "Application1",
        ReportResolver = new ReportFileResolver(HttpContext.Current.Server.MapPath("~/Reports"))
            .AddFallbackResolver(new ReportTypeResolver()),
        Storage = new Telerik.Reporting.Cache.File.FileStorage(),
    };

        public ReportsController()
        {
            this.ReportServiceConfiguration = configurationInstance;
        }

    }

 

 I'm using asp.net MVC 5 , and web api assemblies are already referenced , I have many web api controllers in the project that are working properly.

please advise.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 08 Dec 2015, 03:40 PM
Hello Mohammad,

The http://localhost:[portnumber]/api/reports/formats should return the available rendering formats successfully after following the steps in the How To: Add Telerik Reporting REST Web API to Web Application help article.
In case the issue persists, please send us a runnable sample project exhibiting the issue in a support ticket, so we can review it locally and advise accordingly.

Regards,
Nasko
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
Tags
General Discussions
Asked by
mohammad
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or