It is because your program location don't have a programName.exe.config file,the ConfigurationManager can't access the content,so make sure the file exist.
Or you can link there to know more about ConfigurationManager :
http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx