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

Internal Server Error - Reporting

3 Answers 737 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 29 Jan 2016, 02:49 PM

Hello,

Actually I am using kendo reporting with MVC when I run my webpage and show the reports in my local pc all is great, but when I publish my webpage into a server and run it in a web browser the webpage is ok the problem is when I try to visualize the reports in the browser it gives me the following errors.

Internal Server Error:
An error has occurred.
Object reference not set to an instance of an object.

and

Internal Server Error:
An error has occurred.
Value cannot be null. Parameter name: source

Now I update to Kendo Reporting Q2 2015 and I have the following error:

Error registering the viewer with the service.
An error has occurred.
Object reference not set to an instance of an object.

What should I do?

I will appreciate your help.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 29 Jan 2016, 04:28 PM
Hello Fernando,

The error means that the REST Service is not implemented correctly, or is not found by the report viewer client. Please review the 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.

You can also find sample implementations of the viewer and the service in the Telerik Examples folder: C:\Program Files (x86)\Telerik\Reporting <version>\Examples

In case the issue persists, please send us a runnable sample project exhibiting the problematic behavior, so we can debug it locally and advise accordingly.

Regards,
Nasko
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
0
Fernando
Top achievements
Rank 1
answered on 16 Mar 2016, 09:16 PM

Hi Nasko,

I already implement like is in the examples, but againg I run my webpage in my local pc and show the reports, but when I publish my webpage into a server and run it in a web browser the webpage is ok the problem is when I try to visualize the reports in the browser it gives me the following error.

Error registering the viewer with the service.
An error has occurred.
Object reference not set to an instance of an object.

Also I analyze in detail my localhost/api/reports/formats this works correctly but localhost/api/reports/clients gives me the following error:

"The requested resource does not support http method 'GET'."

Can you help me with this please?

 

Thank you.

0
Nasko
Telerik team
answered on 21 Mar 2016, 11:41 AM
Hello Fernando,

The Reporting REST service uses the following methods - REST API Reference. The server should be configured so it can handle these methods. More information can be found here.

Regards,
Nasko
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
Latha
Top achievements
Rank 1
Iron
commented on 08 Jun 2022, 02:28 PM

Hi Nasko,

 

I get object reference error in Get Document call.

First 3 API calls work as expected:

host:55697/api/reports/clients

http://localhost:55697/api/reports/clients/ca01ac01455/instances

http://localhost:55697/api/reports/clients/ca01ac01455/instances/1d7f32f6091/documents

http://localhost:55697/api/reports/clients/ca01ac01455/instances/1d7f32f6091/documents/b8d7ea23415fc1fdc3210d -- FAILS - object reference error


Dimitar
Telerik team
commented on 13 Jun 2022, 02:18 PM

Hi Latha,

Please record a trace listener of the error - Troubleshooting reporting implementation into ASP.NET Core application.

Regards,

Dimitar

Tags
General Discussions
Asked by
Fernando
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or