Dear Support team,
I am trying view to Telerik report on the server. On my local machine everything works fine but when i deploy it on the server it says
Error creating a report instance and google console log I see it as 500(internal server error) missing parameters and instances.
Please provide immediate assistance
7 Answers, 1 is accepted
The error message indicates that the viewer's ReportSource might be not valid. As it seems that you use a TypeReportSource, its TypeName property takes a string which should be a valid assembly-qualified name of the report.
To make sure that the string set as TypeReportSource.TypeName is correct you can use Type.AssemblyQualifiedName Property and set the report source as following:
In case you have a custom report resolver - Handling errors occurring in a Custom Resolver used by a Reporting REST Service KB article would be helpful to add error handling.
Use Fiddler to check the requests during running the application in Browser. Then you can see the actual Response from the server and the reason for the error. You can also use the browser's console to check which request fails.
I am able to view the report on through vs2015 and also I am able to view it on local IIS. But When I deploy on windows server I am getting errors
Please Provide immediate assistance
The provided settings of the viewer seem to be correct. However, we would need to check the implementation of the REST service (ReportsController) in order to provide you more specific suggestions.
Additionally, make sure that the following points are valid:
- The reports and the viewer's projects use the same Telerik Reporting version. For the purpose you can run the Upgrade Wizard to verify this;
- The reports' project assembly is referenced in the viewer's project;
- The assembly qualified name of the report is spelled correctly: <namespace>.<report_name>, <assembly_name> (the name is case sensitive).
- Check the parameters added in the report, and verify the passed at values conform the specified type for each. If you need parameters to have null values, check the AllowNull property of each parameter in the report. For more details check Report Parameters. The parameters values passed from the viewer are mapped to the added report parameters by name.
Details about passing report parameters' values through the HTML5 Report Viewer are available in the How To: Pass values to report parameters article.
To check what is the reason for errors with the HTML5 Report Viewer, you can use Fiddler and check the Raw Response text in the Inspectors tab after selecting the failed request.
In case the issue still persist, send us a sample that reproduces the problem and the log file created by Fiddler (Fiddler>File>Save>All sessions) in a support ticket so we can investigate them further.
Please do let me know why I am facing this issue the report viewer works fine on my local IIS deployment once I deploy it on the server I am getting the following issue
I've opened a new support ticket where you would be able to send the problematic project in order to investigate it further.
Your ticket ID is: 1160707. Let's continue our discussion there.