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

Error creating report instance

1 Answer 313 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Mehmet
Top achievements
Rank 1
Mehmet asked on 15 May 2014, 11:56 AM
Hi;

I new user in Telerik. I prepaire a report page in mvc5 with web API.  I complete these steps but. cant see my report browser:

http://blogs.telerik.com/blogs/13-12-12/establishing-a-telerik-restful-reporting-service-in-under-5-minutes

my default connection:   
  <add name="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" connectionString="Data Source=.;Initial Catalog=ModularicaDb;Integrated Security=SSPI" providerName="System.Data.SqlClient" />

My Database: SqlServer 2012 Database Name: ModularicaDb

http://blogs.telerik.com/careypayette/posts/14-01-06/consuming-telerik-rest-service-reports-in-asp.net-mvc-5

$("#reportViewer1")
        .telerik_ReportViewer({
            serviceUrl: "http://localhost:55098/api/reports/",
            templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate.html',
            reportSource: {
                report: "as.trdx",
                parameters: {
                    ReportYear: "2003"
                }
            },
            viewMode: "ViewModes.INTERACTIVE",
            scaleMode: "ScaleModes.SPECIFIC",
            scale: "1.0"
        });



I can show my report on Report Designer StandAlone software but cant see on mvc project?

Regads...


1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 20 May 2014, 11:03 AM
Hello Mehmet,

The attachment cannot be opened.

Please take a look at my post in the 400 Bad Request for /api/reports/clients/{client_id}/parameters forum thread, and verify all settings listed in the linked articles are applied correctly.

The major settings you have to check are:
  1. If the folder with the TRDX files is mapped correctly in the ReportscontrollerBase.CreateReportResolver method;
  2. If relative paths are resolved correctly based on the projects structure;
  3. If the Reporting REST service is reachable at the given address. If the service is hosted separately, you will need to enable CORS to allow the communication with the viewer.
  4. If all connection strings used in the report are copied in the corresponding section of the service's project. If you have extended the Standalone Designer with external assemblies, please check the Deploying trdx (XML report definition) that uses external assembly KB article.

If you need further help, please reattach the details about the received error. You can also check the failed requests with Fiddler at your side.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Report Designer (standalone)
Asked by
Mehmet
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or