Hi,
I have a issue with following Code......
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; c.Save(); this.Close(); }
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…..