Top "App-config" questions

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

Get connection string from App.config

var connection = ConnectionFactory.GetConnection( ConfigurationManager.ConnectionStrings["Test"] .ConnectionString, DataBaseProvider); And this is my App.config: <?xml version="1.0" encoding="utf-8" ?&…

c# ado.net exception-handling connection-string app-config
How to read AppSettings values from a .json file in ASP.NET Core

I have set up my AppSettings data in file appsettings/Config .json like this: { "AppSettings": { "token": "1234" } } I have searched online …

c# asp.net-core .net-core configuration app-config
What is App.config in C#.NET? How to use it?

I have done a project in C#.NET where my database file is an Excel workbook. Since the location of …

c# .net app-config
C# DLL config file

Im trying to add an app.config file to my DLL, but all attempts have failed. According to MusicGenesis in …

c# app-config
App.Config Transformation for projects which are not Web Projects in Visual Studio?

For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for …

visual-studio .net-4.0 app-config slowcheetah web-config-transform
How to get a List<string> collection of values from app.config in WPF?

The following example fills the ItemsControl with a List of BackupDirectories which I get from code. How can I change …

c# wpf itemscontrol app-config
Equivalent to 'app.config' for a library (DLL)

Is there an equivalent to app.config for libraries (DLLs)? If not, what is the easiest way to store configuration …

c# .net dll settings app-config
App.Config change value

This is my App.Config <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="…

c# app-config
How to implement a ConfigurationSection with a ConfigurationElementCollection

I am trying to implement a custom configuration section in a project and I keep running up against exceptions that …

c# configuration app-config configuration-files
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