Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
20
votes
2 answers
Custom Behavior won't register in my web.config
I have a working application using Json.NET (newtonsoft) as a custom serializer. Currently I'm adding this derivative of WebHttpBehavior in a custom WebServiceHostFactory. See the code snippet at the end of this blog for how I've attached it.
As I'm…

Gaute Løken
- 7,522
- 3
- 20
- 38
20
votes
8 answers
Reading Java Properties file without escaping values
My application needs to use a .properties file for configuration.
In the properties files, users are allow to specify paths.
Problem
Properties files need values to be escaped, eg
dir = c:\\mydir
Needed
I need some way to accept a properties file…

pdeva
- 43,605
- 46
- 133
- 171
20
votes
5 answers
What are possible lightweight Java configuration libraries for handling complex configuration?
I have a need for processing a relatively complex set of configuration parameters for a java application. The requirements are roughly:
Nested configuration values with lists, maps, etc. - not just plain key/value pairs
Multiple configuration files…

Nakedible
- 4,067
- 7
- 34
- 40
20
votes
3 answers
Can I add conditions in app.config file?
Is it possible to add conditions in app.config file?
I do below in the C# code and I want to do something similar in my app.config file too.
#if (Debug)
.......
#else
.....
#endif

CharithJ
- 46,289
- 20
- 116
- 131
20
votes
4 answers
unable to save applicationHost.config file
I could not save applicationHost.config file, it says "save failed and it is open in another programs" while I stop IIS service and closed visual studio, any idea?

Matt Stone
- 291
- 2
- 4
- 15
20
votes
3 answers
Is it right to set a config PHP class to keep project settings?
I want to create a config.php file to keep the various configuration values that usually being changed from project to project, and I want to define a class to keep the config values in this file like the following:
class Config {
const…

Amr
- 4,809
- 6
- 46
- 60
19
votes
3 answers
Is it possible to use multiple ehcache.xml (in different projects, same war)?
I have a services project and a web project. I need to have eh-cache in both projects.
The idea is that if the service project is updated, it's cache-related changes (like keys and invalidation rules) will also be available, while no changes are…

Ivaylo Slavov
- 8,839
- 12
- 65
- 108
19
votes
5 answers
Configuration file in Android. Does that exist?
I have some configuration I want to save it in my Android application and read it whenever I need , for instance, the server URL that it should try to access like that.
Is there any similar mechanism like web.config in ASP.NET available in Android?…

JSBach
- 4,679
- 8
- 51
- 98
19
votes
3 answers
WCF service configuration file question regarding
From what I've seen the tag is ignored when hosting a WCF service in IIS. I understand that when self-hosting this is required but is this harmful or even used when operating under IIS?
ex.
…

Kyle
- 547
- 1
- 3
- 7
19
votes
2 answers
Reference another json file in appsettings.json for ASP.NET Core configuration
In 'the old days' using XML configuration it was possible to include partial configuration from another file like this:
Now in ASP.NET Core I would…

Kapé
- 4,411
- 3
- 37
- 54
19
votes
6 answers
How to create a custom yaml config file in Symfony
What I want to do is quite simple: store data in a custom config file that I want to read later on.
I created my file something.yml that I put in the global config directory.
It looks like that:
prod:
test: ok
dev:
test: ko
all:
foo: bar
…

Guillaume Flandre
- 8,936
- 8
- 46
- 54
18
votes
1 answer
How to parse config file with erlang?
i am developing one program with erlang, which need to read config file when starting, then load the config data to database. originally, using Ruby or C i can load YAML file or conf file. I want to know, in erlang's world, is there any good way to…

why
- 23,923
- 29
- 97
- 142
18
votes
7 answers
How can I make a .NET class library read its own configuration file?
I have a .NET class library that provides a set of helper functions that are used by several Web Services. This class library must store a single setting, specifically, a connection string, which need not be seen by the Web Services themselves,…

isekaijin
- 19,076
- 18
- 85
- 153
18
votes
4 answers
Is there a typical config or property file format and library in Haskell?
I need a set of key-value pairs for configuration read in from a file. I tried using show on a Data.Map and it doesn't look at all like what I want. It seems this is something many others might have already done so I'm wondering if there is a…

mentics
- 6,852
- 5
- 39
- 93
18
votes
5 answers
Programmatically encrypting a config-file in .NET
Could somebody please do a rundown of how to programmatically encrypt a config-file in .NET, preferably in C#.
What I would like to do is do some kind of check on an application's startup to see if a section is unprotected, and if it is, then…

Seb Nilsson
- 26,200
- 30
- 103
- 130