Top "App-config" questions

.NET application configuration files contain settings specific to an application.

Web.config is not transformed when debugging code

I have a main Web.config file, and under that there is a Web.Test.config, Web.Development.Config etc. …

c# visual-studio visual-studio-2015 app-config slowcheetah
How do you instruct NUnit to load an assembly's dll.config file from a specific directory?

If an assembly contains an app.config file, ConfigurationManager will load it as long as it is in the same …

.net unit-testing nunit app-config configurationmanager
ConfigurationManager.AppSettings - Returns Null

Im trying to read settings from my app.config and im sure it was working before but now it returns …

c# app-config configurationmanager appsettings
How to set boolean values in an INI configuration file?

I've seen a variety of ways used to set boolean values in INI files: variable = true variable = 1 variable = on variable = …

app-config ini
How to use Application Data in an (App.config) connectionString

I've got an SQL Server CE database in a project that I wan't to store somewhere in the %AppData% directory. …

c# app-config connection-string special-folders appdata
C# Set probing privatePath without app.config?

I have a C# application, and to organize its files I have some DLL's in a folder called "Data". I …

c# path app-config private probing
Automatically "upgrade" user settings from previous version of app.config file?

Every time I compile my app and the version number changes (I have an auto-incrementing build number), I lose the …

.net vb.net app-config application-settings
Common.Logging config exception

I'm getting the following exception when I try to call var log = LogManager.GetLogger(this.GetType()); A first chance exception …

c# .net exception-handling app-config common.logging
Can't read app.config in C# .NET Core unit test project with ConfigurationManager

I've created a simple unit test project to read an app.config file. Target framework is Core 2.0. I also created …

c# unit-testing .net-core app-config
WebHttpBinding in WCF: how to configure it the proper way?

Trying to follow this example to make it work: http://weblogs.asp.net/kiyoshi/archive/2008/10/08/wcf-using-webhttpbinding-for-rest-services.aspx Here is my …

c# .net wcf app-config webhttpbinding