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

Error with Telerik Reporting objectdatasource with MVC

7 Answers 495 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
nikky
Top achievements
Rank 1
nikky asked on 05 Nov 2012, 07:23 PM
When trying to use Telerik Report Wizard to connect to an objectdatasource, I get the error "An error occurred while invoking data retrieval method"  Try restarting VisualStudio."

Please can someone help me troubleshoot this. I am using version Q3_2012_v6_2_12_1017.

Thanks.

7 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 08 Nov 2012, 05:08 PM
Hi NIkky,

We will need some additional information about your issue since we are not able to reproduce it at our end. For example you can provide us with a step-by-step guide on how to reproduce it.

Other than that you can try actually restarting Visual Studio, since this is the actual problem in most cases and doing so will resolve your issue.

Greetings,
IvanY
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
nikky
Top achievements
Rank 1
answered on 08 Nov 2012, 05:36 PM
Thanks IvanY  for the reply.

Here are detailed steps of what I am trying to accomplish.

I am working on Windows Server 2003 R2 and Visual Studio 2010. I have an MVC web application on the machine. I installed "Telerik_Reporting_Trial_Installer_Q3_2012_v6_2_12_1017.exe" on the server and the following references:
  1. Telerik.Reporting
  2. Telerik.ReportViewer.WebForms

I then added a new "Telerik Report Q3 2012" report to the solution. When the Telerik Report gets created, I get a Telerik Report Wizard Screen. I hot "Nest" on the screen. For next screen, I select "New Report" and click on "Next". Then on the 3rd screen when I try to add a new DataSource, I select Object Data Source and access the function from one of my DataAccess classs file. As soon as I select the business object and the data member and click on "Finish", I get the above error. The data member has a simple function to access the database and retrieve information from a table.

I have already tried the following with no success:

  • Restarting Visual Studio
  • Restarting machine
  • Re-installing the software
  • adding connection string to the data member function "Data Source=MACHINE1;Initial Catalog=TEST;Integrated Security=True"

Please let me know if you need any other information.

Nikky

0
IvanY
Telerik team
answered on 12 Nov 2012, 12:15 PM
Hi Nikky,

Since we were not able to reproduce your issue following the steps you have provided it will be best if you can open a support ticket and attach a sample report that reproduces it so that we are able to view/debug it at our end - this will help us identify the culprit faster and advise you more accordingly.

Greetings,
IvanY
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Pravallika
Top achievements
Rank 1
answered on 29 Sep 2014, 06:28 AM
Hai IvanY ,

I am also getting the same problem my version is 8.0.14.225 and runtime version v4.0.30319 and i am adding like this
Add=>new item=>Reporting=>Telerik Report Q1 2014=>report1.cs

Telerik report Wizard window is opening there i followed these steps
Add New Datasource=>Object Datasource =>ObjectDatasource1=>Ok
in Choose a business Object  window
Avaliable datasource types tab i selected =>DatatableAdapter1 =>Next
in choose a datamember i selected Choose a Data source Membe selected=>GetData()=>finsh

now i am getting  an Alert Box like "An eroor Occurred while invoking data retrieval method .try restarting visual studio"

how to slove
i am using Visual studio 2013 and my pc is Windows 8 ,64-bit operating system


0
Stef
Telerik team
answered on 01 Oct 2014, 03:55 PM
Hi Pravallika,

Please check my reply in the forum thread you opened on the same question: Telerik Reporting using objectDataSource.

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.

 
0
Simon
Top achievements
Rank 1
answered on 30 Oct 2018, 03:34 PM

Hi,

 

I have the same error.

I have add a new datasourceobject to the report and then I can not use the preview anymore.

Please see the attached file.

Perhaps the solution is simple.

 

 

0
Silviya
Telerik team
answered on 02 Nov 2018, 11:55 AM
Hello Simon,

You might check the answer from Stef on the same topic here. Alternatively, you can try restarting Visual Studio, since this is the actual problem in most cases and doing so will resolve your issue. 
If the issue still persist, please open new support ticket and send us a sample report that reproduces it so we can check its settings.

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
nikky
Top achievements
Rank 1
Answers by
IvanY
Telerik team
nikky
Top achievements
Rank 1
Pravallika
Top achievements
Rank 1
Stef
Telerik team
Simon
Top achievements
Rank 1
Silviya
Telerik team
Share this question
or