Questions tagged [configuration-files]

Files that configure the initial settings for some computer programs.

2246 questions
13
votes
2 answers

Azure configuration settings and Microsoft.WindowsAzure.CloudConfigurationManager

Apparently Microsoft.WindowsAzure.CloudConfigurationManager.GetSettings will start by looking in ServiceConfiguration.*.cscfg and then fall back to web.config and app.config. But - what format should this be in web/app .config? E.g. to get…
Ryan
  • 23,871
  • 24
  • 86
  • 132
12
votes
3 answers

Adding a body to a HttpWebRequest that is being used with the azure service mgmt api

How would i go about adding to the body of a HttpWebRequest? The body needs to be made up of the following
StevenR
  • 435
  • 1
  • 6
  • 16
12
votes
6 answers

Why there's no configuration file at all for dependency injection with Google Guice?

I am checking out Google Guice as DI framework but I am a bit puzzled: why there's no configuration file at all? I found a partial explanation on this question but it is still not clear how I would be able to set my component roles (or any other…
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
12
votes
3 answers

Configuration System Failed To Initialize

In my application when I try to get the connection string by using this code : System.Configuration.ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString; It throws an exception that "Configuration System Failed To Initialize". Where…
Akshay J
  • 5,362
  • 13
  • 68
  • 105
12
votes
4 answers

How to make the Visual Studio compiler ignore a file?

Is anyone aware of a way to make visual studio completely ignore a file when compiling? I have a C# solution that has a foo.config file that isn't really a standard config file - it's just a text file. During compiling VS grabs a hold of the file…
12
votes
4 answers

bind multiple IP in mongoDb 4.x.x

for mongoDB 4.0.3, unable to add multiple ips in bindIp following config works for localhost net: port:27017 bindIp:127.0.0.1 Following works for logging from other ip: net: port:27017 bindIp:0.0.0.0 following doesn't work …
cartman619
  • 552
  • 4
  • 17
12
votes
1 answer

ZeroMQ failing to communicate between two Docker containers

I'm trying to set up a toy example of Docker networking with ZeroMQ in macOS, where the serverd.py sends a message to the clientd.py and the client simply displays it using PUSH/PULL. If I run them outside of the container they work fine, but I'm…
Jimmy C
  • 9,270
  • 11
  • 44
  • 64
12
votes
10 answers

what would be a quick way to read a property file in python?

I have a file with the format VarName=Value . . I want to read it into a hash such that H("VarName") will return the value. What would be a quick way? (read a set of strings, split all of them where the equality sign is, and then put it into a…
jury
  • 121
  • 1
  • 1
  • 3
12
votes
2 answers

Spark configuration change in runtime

So asking if anyone knows a way to change the Spark properties (e.g. spark.executor.memory, spark.shuffle.spill.compress, etc) during runtime, so that a change may take effect between the tasks/stages during a job... So I know that... 1) The…
12
votes
4 answers

Best Practice for storing settings for a .NET Windows Service: Service Property Settings, Serialization,

I am working on a .NET Windows Service where I am trying to store settings that will be used when the service is started and while it is running. I have searched through posts on SO and found that using the Settings in the properties of the project…
12
votes
1 answer

Precedence of Configuration options: Environment, Registry, Configuration file and Commandline In What Order?

So this is a funny little thing I thing Stack Overflow has not discussed before. Not really a life and death question, but something I'd like to hear your input. In short: my program is a bit over engineered in this regard: it takes configuration…
12
votes
1 answer

How to Write to a User.Config file through ConfigurationManager?

I'm trying to persist user settings to a configuration file using ConfigurationManager. I want to scope these settings to the user only, because application changes can't be saved on Vista/Win 7 without admin privileges. This seems to get me the…
Josh G
  • 14,068
  • 7
  • 62
  • 74
12
votes
1 answer

How to specify in YAML to always create log file in the project's folder using dictConfig?

In my Python program I have the following code: def main(): # The file's path path = os.path.dirname(os.path.realpath(__file__)) ... # Config file relative to this file loggingConf = open('{0}/configs/logging.yml'.format(path),…
Daniel Jonsson
  • 3,261
  • 5
  • 45
  • 66
12
votes
1 answer

How to read values from multiple Configuration file in c# within a single project?

Here in my project I have two application configuration files called app.config and accessLevel.config. Now using the OpenExeConfiguration I was able to access the app.config.exe file but not the accessLevel.config. Please help on this. The main…
Praveen
  • 55,303
  • 33
  • 133
  • 164
12
votes
1 answer

Can Spring Parse and Inject Properties Files?

I already know how to: Load properties files into my Spring configuration using: Build properties objects on the fly using: some…
Garth Gilmour
  • 11,124
  • 5
  • 25
  • 35