Question: how to add a reference to system.configuration.dll?
Answer: Right click the project and choose add reference, browse "Assemblies" and tick the System. Configuration assembly. Include the namespace in code: using System.Configuration;