Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
Cannot connect to data, using ASP.Net MVC Application / HTML5 Viewer
posted

Hi, I'm having trouble connecting to my data in my report that I have created using Visual Studio 2012.  I followed the walkthrough for "Creating a Simple Tabular Report" which was very simple.  I then followed the "How to Display a Reporting Using the HTML5 Report viewer"  which is where I'm encountering errors.  I have the HTML5 Report Viewer loading properly, but the data never fills in.  The Report Viewer throws the error Cannot establish connection with the Report Server.  The console in Google Chrome states that there is a 404 error, 

I believe I have followed everything properly.  I have one Visual Studio Project with all the necessary files, report, reportService, and then the proper web files.   Any suggestions will be greatly appreciated.

Parents
No Data
Reply
  • 5
    posted

    If you're using the MVC framework, you may need to add the following ignore route (This is MVC4 syntax):

    routes.IgnoreRoute("{*allServiceEndpoints}", new { allServiceEndpoints = @".*\.svc(/.*)?" });

    This will prevent the MVC framework from trying to process requests ending in a '.svc' extension, specifically preventing accessing the 'ReportService.svc' endpoint.

Children
No Data