[RESOLVED] Reading app.config
HI all using the following code.
Code:
//Should just bring back my name from a config file
try
{
string x =ConfigurationSettings.AppSettings["name"].ToString();
MessageBox.Show(x.ToString());
}
catch(ConfigurationException ce)
{
MessageBox.Show(ce.Message);
}
catch(Exception ge)
{
MessageBox.Show(ge.Message);
}
Works fine in the IDE but when i run the release version I get the following exception message.
Quote:
Object reference not set to an instance of an object
ANy help would be greatly appreciated!!