Top "Configurationmanager" questions

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

AppSettings get value from .config file

I'm not able to access values in configuration file. Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); var clientsFilePath = config.AppSettings.Settings["…

c# .net appsettings configurationmanager
ConfigurationManager.AppSettings - How to modify and save?

It might sound too trival to ask and I do the same thing as suggested in articles, yet it doesn't …

c# .net appsettings configurationmanager settings
How to find path of active app.config file?

I'm trying to finish this exception handler: if (ConfigurationManager.ConnectionStrings["ConnectionString"]==null) { string pathOfActiveConfigFile = ...? throw new ConfigurationErrorsException( "You either forgot …

c# .net nunit app-config configurationmanager
How to check if an appSettings key exists?

How do I check to see if an Application Setting is available? i.e. app.config <?xml version="1.0" encoding="…

c# appsettings configurationmanager
SCCM 2012 application install "Failed" in client Software Center

We're using SCCM 2012 and I'm packaging all of our application and testing them as I go. Some only have .exe's …

logging configurationmanager sccm
How to get the values of a ConfigurationSection of type NameValueSectionHandler

I'm working with C#, Framework 3.5 (VS 2008). I'm using the ConfigurationManager to load a config (not the default app.config file) …

c# config configurationmanager configurationsection
Error: The name 'ConfigurationManager' does not exist in the current context

I have included the following statement in my Visual C# Console Application (Visual Studio 2005 .NET 2.0 Framework) using System.Configuration; and …

c# configurationmanager
Where is ConfigurationManager's namespace?

I've got a reference to System.Configuration - and ConfigurationSettings is found no problem - but the type or namespace …

c# .net-3.5 reference configurationmanager system.configuration
System.Configuration.ConfigurationManager not available?

In a VS2005 C# project I have added a reference to System.configuration. In the object browser, I can see …

.net configurationmanager
ConfigurationManager.OpenExeConfiguration - loads the wrong file?

I have added multiple app.config (each with a differet name) files to a project, and set them to copy …

c# configurationmanager