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

error registering the viewer with the service

6 Answers 1573 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
amber
Top achievements
Rank 1
amber asked on 27 Dec 2013, 10:44 PM
Hi,

We are in trial stage of Telerik reporting. I deployed the CSharp html5 sample in IIS and got "error registering the viewer with the service" error when browsing default.html. Is it due to cross domain issue? But we didn't call web service out of the web application.

Thanks,

Amber

6 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 30 Dec 2013, 02:31 PM
Hello Amber,

Please test to paste in browser the full service URL. If the service responds, set the HTML5 Report Viewer serviceUrl to the full address of the service. Also use Fiddler to detect what is the actual reason the viewer not to be registered with the service. Fiddler will help you to determine the URL of the requests during running the application in browser and their statuses.

If you need further help, please post the result code of the failed request and the Fiddler Inspectors Raw content.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
amber
Top achievements
Rank 1
answered on 30 Dec 2013, 06:28 PM
Thanks for your reply, Stef.  I tried the full service URL in fiddler, it always return 404(NOT FOUND). Running from visual Studio works fine. So I suspect about the reportLibrary folder location (I didn't use the reports under report designer, I use the reports under the reportLibrary folder). Sorry about my question since I'm new to Telerik Reporting.
0
Accepted
Stef
Telerik team
answered on 31 Dec 2013, 04:27 PM
Hello Amber,

Please check if IIS is started on your machine by running htpp://localhost in browser. Then run VS and open the HTML5Demo project. From the project's Properties - Web tab select "Use Local IIS Web server" and remove the check next to "Use IIS Express". Click the Create Virtual Directory button and assure the application is set in IIS and uses proper application pool. Finally copy the Project Url and add /api/reports to test the Reporting REST service. If the browser responds, run the application in browser using the Project Url and the default start page.

If you need further help, please send us the log file created by Fiddler during running the application. Feel free to open a support ticket and send us your details in it.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
amber
Top achievements
Rank 1
answered on 31 Dec 2013, 06:00 PM
Perfect! It works. In the past I added new application in IIS directly, it just doesn't work.
0
Arun
Top achievements
Rank 1
answered on 04 May 2018, 12:53 PM

Hello, We are using telerik reporting in our application. The reports work as expected in the local development machine, however are giving the "Error registering the viewer with the service.An error has occurred.Object reference not set to an instance of an object." when deployed to production. We have changed the service url to the entire application url like https:server name/application name/api/reports with no avail. In the chrome developer tools, the console is showing 500 (Internal Server Error) and in the network tab, the error is being shown in the clients of type xhr. Any help would be appreciated. - Thanks

PS: I have attached the code for your reference

0
Silviya
Telerik team
answered on 09 May 2018, 09:12 AM
Hello Arun,

This error indicates that the REST Service might not be implemented correctly or is not found by the report viewer client. 
You can review How To: Use HTML5 ASP.NET MVC Report Viewer in an application and How To: Add Telerik Reporting REST Web API to Web Application help articles and check if everything is implemented correctly on your end (step 8). Check if relative paths are resolved correctly depending on your project structure and hosting - ASP.NET Web Project Paths MSDN article.

You can find sample implementations of the viewer and the REST service in the Telerik installation folder. For example C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples.
Although, you might test upgrading the project to the latest version of Telerik Reporting with Upgrade Wizard and then rebuild the project.

In general, the recommended troubleshooting approach is to use Fiddler or another proxy tool to check the requests, their responses and statuses. Information about requests and responses content can be seen in Fiddler - Inspectors - Request/Response - Raw tabs. This will let you check requests to the Reporting REST service and if the URLs are correct (if relative paths are resolved correctly).
In case the issue persists, we would need more details how the REST service is configured in your application and a .SAZ file generated by Fiddler so we can check the settings and advice further.

Regards,
Silviya
Progress 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
amber
Top achievements
Rank 1
Answers by
Stef
Telerik team
amber
Top achievements
Rank 1
Arun
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or