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.
6 Answers, 1 is accepted
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.
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.
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
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.