tagged [configuration]

Having NLog loggers with different configuration

Having NLog loggers with different configuration In NLog is possible to create multiple loggers with different configuration? I have a component that every time that is instanced must log all events t...

18 Jul at 21:17

ConfigurationManager.AppSettings use another config file

ConfigurationManager.AppSettings use another config file I have about 10 methods in my class. In every method I use `ConfigurationManager.AppSettings` to get value form App.config file like My problem...

20 Jan at 15:0

How to disable creation of empty log file on app start?

How to disable creation of empty log file on app start? I have configured log4net in my app successfully but one thing is a little bit annoying for me. The log file is created (empty) after my app sta...

Use XML includes or config references in app.config to include other config files' settings

Use XML includes or config references in app.config to include other config files' settings I have standard logging, NHibernate, etc. configuration blocks in my `app.config` and I'd like to extract th...

29 Apr at 00:9

Autofac IComponentContext vs ILifetimeScope

Autofac IComponentContext vs ILifetimeScope I was passing the IContainer in a service so I read that it is not good to pass this around but instead use it only to the root of the app and pass either I...

29 May at 10:38

Accessing another projects app.config properties?

Accessing another projects app.config properties? I have two projects within my solution, for this example I will call them project A and B. Project B references A. Can Project B access the app.config...

How to read "List Separator" settings from Regional configuration of control panel?

How to read "List Separator" settings from Regional configuration of control panel? I'm making multi culture plugin for MS Word,Excel where I need to identify setting value provided in Regional Settin...

26 Jul at 18:11

custom ConfigurationSection

custom ConfigurationSection I use IConfigurationSectionHandler interface to get information about my custom config section. But it's deprecated and I want to use ConfigurationSection instead. How to c...

Encrypt password in configuration files

Encrypt password in configuration files I have a program that reads server information from a configuration file and would like to encrypt the password in that configuration that can be read by my pro...

How to read ruby on rails config values from within the application controller

How to read ruby on rails config values from within the application controller If i have a configuration file like this How do I get the value from within my application controller, e.g: ``` # app/con...

3 Sep at 16:20

services.Configure<>() or services.AddSingleton().Get()?

services.Configure() or services.AddSingleton().Get()? As known there are two ways to get option classes in ASP.NET Core 2: 1. Using services.Configure() like this: services.AddOption(); services.Conf...

22 Nov at 13:13

Visual Web Developer (Express): Setting Document Root for Dev Environment

Visual Web Developer (Express): Setting Document Root for Dev Environment I'm developing a site in Visual Web Dev Express, and when I run/debug, I'd like to be able to set my application's document ro...

App.config vs. .ini files

App.config vs. .ini files I'm reviewing a .NET project, and I came across some pretty heavy usage of .ini files for configuration. I would much prefer to use app.config files instead, but before I jum...

19 Mar at 08:15

ASP.NET Core configuration for .NET Core console application

ASP.NET Core configuration for .NET Core console application ASP.NET Core support a new configuration system as seen here: [https://docs.asp.net/en/latest/fundamentals/configuration.html](https://docs...

Load parts of App.Config from another file

Load parts of App.Config from another file I like to split my `app.config` into a user specific part and an application specific part. Is it possible to store a part of the `app.config` in another fil...

20 Apr at 11:37

How to configure postgresql for the first time?

How to configure postgresql for the first time? I have just installed postgresql and I specified password x during installation. When I try to do `createdb` and specify any password I get the message:...

Where is ConfigurationManager's namespace?

Where is ConfigurationManager's namespace? I've got a reference to `System.Configuration` - and `ConfigurationSettings` is found no problem - but the type or namespace '`ConfigurationManager`' could n...

How to programmatically modify WCF app.config endpoint address setting?

How to programmatically modify WCF app.config endpoint address setting? I'd like to programmatically modify my app.config file to set which service file endpoint should be used. What is the best way t...

12 Apr at 04:44

I can not find my.cnf on my windows computer

I can not find my.cnf on my windows computer My computer is Windows XP. I need to find `my.cnf` to get all privileges back to the root user. I accidentally removed some privileges of the root user. I ...

12 Aug at 04:16

How can I add a filter class in Spring Boot?

How can I add a filter class in Spring Boot? Is there any annotation for a `Filter` class (for web applications) in Spring Boot? Perhaps `@Filter`? I want to add a custom filter in my project. [The Sp...

How to get config parameters in Symfony2 Twig Templates

How to get config parameters in Symfony2 Twig Templates I have a Symfony2 Twig template. I want to output the value of a config parameter in this twig template (a version number). Therefore I defined ...

22 Nov at 04:36

How can I get current config of the web application without using HttpContext?

How can I get current config of the web application without using HttpContext? I need to get the instance of current configuration in my web application. I found that I can get it in the following way...

8 Nov at 15:17

Change connection string & reload app.config at run time

Change connection string & reload app.config at run time When I change the connection string using this code, it does not reload `app.config` at runtime. I expected it to reload similarly to how we re...

23 Aug at 22:33

Environment variable to control java.io.tmpdir?

Environment variable to control java.io.tmpdir? I've used the `TMP` environment variable to control things like where gcc writes it's temporary files, but I can't seem to find an equivalent for java's...

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3 I installed a new fresh copy of Laravel 5.3 using composer but I'm getting this error: > The only s...

23 Apr at 08:29