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

Error in code

1 Answer 49 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Somnath asked on 06 Jun 2011, 08:44 AM
I have a issue with following Code......

private void btnFinish_Click(object sender, EventArgs e)
            Configuration c = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location);
            ConnectionStringsSection section =  (ConnectionStringsSection) c.GetSection("connectionStrings");
            section.ConnectionStrings["netTiersConnectionString"].ConnectionString =  connectionString;

My program gives an error at this point:
section.ConnectionStrings["netTiersConnectionString"].ConnectionString = connectionString;

error:”object reference not set to an instance of an object”
any ideas?

Thanks in Advance…..

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 09 Jun 2011, 09:26 AM
Hi Somnath,

Thank you for writing.

Before getting to  your question, let me bring to your attention something related to your license. I noticed that you have downloaded a Ttrial version of the WinForms suite from our site which automatically activated your 60 days Trial License coming with a Support Package. Your subscription has already expired, which means that your support package is no longer available as well. If you would like to continue receiving support from us, you will have to consider a purchase of some of the licenses that we offer. At this link - - you can find the available options. These licenses comes with Dev priority support where the tickets should be answered in a guaranteed period of time. Shortly said, we will provide you with quicker responses.

In case have already purchased the tools under another account, please send us the company name, account name and email under which the controls were purchased so that we can update your account and provide you with proper support services. Alternatively, please ask the purchase holder to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here:

As to your question at hand, it seems that your issue is related to your data source configuration, which does not have anything to do with our suite. However, if you think that the issue appear in our controls, please provide me with exact details on how to replicate it. This will allow me to provide you with adequate support.

I am looking forward to your reply.
All the best,
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Buttons, RadioButton, CheckBox, etc
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question