modify App.config and catch IOExeception