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

Telerik Reporting Object Reference not Set to an instace of a object

11 Answers 880 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Esteban Rey Ortega
Top achievements
Rank 1
Esteban Rey Ortega asked on 29 Jul 2010, 09:40 PM

When I do a new report and I want to select the source of data using the wizard Telerik Reporting in the drop-down combo there is no data source (connection). I want to create a new connection and the following message when I press the button "Object Reference not Set to an instace of a object"

This problem also occurs when I want to add a new source of data in the contextual menu in the configure option

How can solves this problem? Thanks

11 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Jul 2010, 04:14 PM
Hello Esteban,

Unfortunately the provided information is insufficient for us to determine what the problem might be and you are the first person to report such problem. Please specify your project setup i.e. are the reports contained in a separate class library, what framework version you're targeting, what is the Telerik Reporting version you're using, what database and provider to connect to it do you use. Any additional information you could provide or a sample report exhibiting the issue would be highly appreciated.

Regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Esteban Rey Ortega
Top achievements
Rank 1
answered on 30 Jul 2010, 05:28 PM
My provider is SQL Server 2005 data and this problem is presented in a separate library "ClassLibrary" my framework version is 4.0, Windows XP Professional operating system. . . . Telerik 2010 Reporting

The problem arises when the designer in Telerik Reporting want to add a data source "datasource" in the properties window of the report.

Choose the "datasource" and displayed on a screen which asks me to add a new data source "add new datasource" the next screen gives me to choose which data source I want to choose and I have the following options Sqldata Source "," Object DataSource ". . . . . . . and told me that I choose the option "SqlDataSource" I presented the following description "Represents a SQL Database to data items" and the "Data Source Name" I get the default name "SqlDataSource1" Press "OK" and he displays the following screen where it says "Configure Data Source." In this screen the combo that is under the words "Data Conection" appears next to this empty there is a button that says "New Connection" so I press this button to select my new connection. When you press this button end is when I get a message saying "Object Reference not intance of an object"

Will not let me add a new source of data to build a new report . . .

Please Help me . . . documentation not found in the forums to solve this problem
 
I hope with this information help you . . . .

Thanks . . . .

0
Peter
Telerik team
answered on 04 Aug 2010, 04:13 PM
Hello Esteban Rey Ortega,

You are the first one to experience such a behavior, thus we will need more information. Please check out the following questions/suggestions:

  • What is your version of Visual Studio?
  • Exactly which version of Telerik Reporting have you installed?
  • Please try to create a Dataset and inform us of the result.
  • Can you reproduce this behavior on other computers?

Best wishes,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Manoj Sevda
Top achievements
Rank 1
answered on 31 Mar 2011, 12:41 PM
Dear Steve,

I face same problem. When I configure SQL Data Source and click on "New Connection" button. I see dialog box "Object reference not set to an instance of an object". I am using

1) Windows7 Ultimate.
2) MS VS 2008 (Win Application) C#.net is Code behind.
3) Sql Server 2005
4) version of Telerik Reporting - 2010_1_10_317
5) Class Library project for reporting.

Note :- Herewith attached error dialog image. Please check it. Please reply me ASAP.

Thanks
Manoj
0
Steve
Telerik team
answered on 05 Apr 2011, 07:00 AM
Hi Manoj,

Thank you for the provided information. We were not able to reproduce such a problem back when Esteban reported it and we have not had such reports with newer versions as well. Since the version you're using is just after the introduction of the data source components, our suggestion is to upgrade to a more recent version of the product (official release is Q1 2011) and if you're still having problems, please open a support ticket and provide us with a project that exhibits the problem.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Shailesh
Top achievements
Rank 1
answered on 29 Jun 2011, 08:53 PM
I have the latest version installed of Telerik Reporting - Q1 2011 SP1 - 5.0.11.510.  What information do you need to help with this?

Anytime I try configure a sqlDataSource from the Toolbox, it says "Object reference not set to an instance of an object." in a dialog box with title "Microsoft Visual Studio".  When I click OK, the connection strings box is empty and the "new connection" box gives the same error.  I can not proceed from there.  I just upgraded from Q1 2010, where all this was working fine.  I tried opening the Telerik C# sample project and am getting the same error message, so this is not a project-specific issue.  I can not configure or access the SQL data source designer at all.  Project builds and runs fine without error or warnings though, and "Preview" view of the report works fine too.
0
Steve
Telerik team
answered on 30 Jun 2011, 08:03 AM
Hello Shailesh,

We were not able to reproduce such problem on our end and would appreciate if you provide us with the exact steps you take. The next step after clicking OK to add the SqlDataSource component to the report is the data source connection, so in this line of thoughts, make sure you do not have invalid connections in Visual Studio. You can check them from Visual Studio menu (View -> Server Explorer) Remove all invalid ones, or if you are not sure which might be invalid, clear them all and re-open the project.
Additionally you can try manually adding SqlDataSource component from the VS Toolbox or from the Report -> DataSource -> Add new DataSource.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Nithiy Sarava
Top achievements
Rank 1
answered on 30 Jun 2011, 06:49 PM
erroneous post
0
Shailesh
Top achievements
Rank 1
answered on 30 Jun 2011, 06:55 PM
When I click on "Server Explorer", the tab is all gray (no explorer appears), and I see the following message in the "Output" panel:

"The Visual Studio Explorers and Designers Package ({8D8529D3-625D-4496-8354-3DAD630ECC1B}) did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type 'devenv /resetskippkgs' at the command prompt."

I Google'd around and found this article:
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/d70ca7a5-f9b3-428b-a666-990ecf7ecf43/

I exited Visual Studio instances and opened the Visual Studio Command prompt.  I typed "devenv /setup" and let it finish.  When I started Visual Studio again, Sever Explorer worked and I the SqlDataSource error message went away too.  Now I can configure the data sources without issue.  Problem solved. Thanks for your assistance.
0
Daniel
Top achievements
Rank 1
answered on 27 Sep 2011, 09:11 AM
happens on my pc also.. shailesh solution worked :D thanks
0
RickyB
Top achievements
Rank 1
answered on 03 Jul 2012, 02:10 PM
Thanks Shailish,

Was getting the same error when trying to run the report wizard.

Your solution resolved that as well.

Thanks again,
Richard
Tags
General Discussions
Asked by
Esteban Rey Ortega
Top achievements
Rank 1
Answers by
Steve
Telerik team
Esteban Rey Ortega
Top achievements
Rank 1
Peter
Telerik team
Manoj Sevda
Top achievements
Rank 1
Shailesh
Top achievements
Rank 1
Nithiy Sarava
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
RickyB
Top achievements
Rank 1
Share this question
or