There is a code missing issue in [ConfigurationManager.OpenExeConfiguration Method.](https://docs.microsoft.com/en-us/dotnet/api/system.configuration.configurationmanager.openexeconfiguration?redirectedfrom=MSDN&view=netframework-4.7.2#System_Configuration_ConfigurationManager_OpenExeConfiguration_System_String_) ConsoleSection currentSection = null; I think ConsoleSection class should be defined in the code. otherwise we could not run the GetRoamingConfiguration method.