Quantcast
Channel: Reading settings from app.config or web.config in .NET - Stack Overflow
Viewing all articles
Browse latest Browse all 29

Answer by asmgx for Reading settings from app.config or web.config in .NET

$
0
0

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

  1. Right-click on the References / Dependencies
  2. Choose Add Reference
  3. Find and add System.Configuration.

This will work for sure.Also for the NameValueCollection you have to write:

using System.Collections.Specialized;

Viewing all articles
Browse latest Browse all 29

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>