Top "Configurationmanager" questions

In the .Net framework, ConfigurationManager is a built-in object that provides access to configuration files.

How to open a SectionGroup in an ASP.NET web application?

I have a small ASP.NET web application hosted in an integration test (executing within NUnit). My product code can …

asp.net configurationmanager
Getting a StringCollection out of AppSettings through the configuration manager

I am accessing my assembly's configuration like this: ExeConfigurationFileMap map = new ExeConfigurationFileMap(); map.ExeConfigFilename = Assembly.GetExecutingAssembly().Location + ".config"; Configuration conf = …

configuration c#-2.0 configurationmanager
Getting error "The name 'Configuration' does not exist in the current context"

I am using Visual Studio 2013 with .NET Framework 4.5. I have included the System.Configuration as a reference in the project. …

c# configurationmanager
How can I get ConfigurationManager to load application settings from multiple files?

I'm writing applications that interoperate with a third-party application. This application exposes an API to developers via methods in a …

c# .net configuration-files configurationmanager
How to read an object from app.config?

This is not a new question, but I've been researching this for two days and all the answers I can …

c# app-config configurationmanager
ConfigurationManager.GetSection(sectionName) returns null while performing unit tests

I have a unit tests project with it's own app.config file, which is a mock of a real configuration …

c# .net configuration nunit configurationmanager
Using configurationmanager to read from multiple web.config files

Background: I have some data thats stored in the web.config files of about 100 web applications. This data is getting …

c# asp.net web-config configurationmanager
How do I get the values from a ConfigSection defined as NameValueSectionHandler when using ConfigurationManager.OpenMappedExeConfiguration

Getting the values from a config file that uses a section defined by System.Configuration.NameValueSectionHandler is easy when you're …

.net configuration configurationmanager
ReadOnlyNameValueCollection (reading from ConfigurationManager.GetSection)

Ok, so..... <section name="test" type="System.Configuration.NameValueFileSectionHandler" /> <test> <add key="foo" value="bar" /&…

c# .net asp.net types configurationmanager