I found the answer in this link https://stackoverflow.com/a/1836938/1492229
It's not only necessary to use the namespaceSystem.Configuration. You have also to add the reference to the assemblySystem.Configuration.dll , by
- Right-click on the References / Dependencies
- Choose Add Reference
- Find and add
System.Configuration.
This will work for sure.Also for the NameValueCollection you have to write:
using System.Collections.Specialized;







