I've got a Visual Studio project that recently started throwing a ConfigurationErrorsException, and I can't figure out where it's coming from. I've hunted high and low, can't find anything like the error, and it doesn't appear for any of my teammates when they run the project on their PCs.
Does anyone have any specific advice on how to ...
I'm learning TDD (in Javascript), and I wanted to know, what is the right way to use configuration variables? Should I make a separate class and have them be member variables of the class, and pass an instance of the class to every object that needs it, or make a list of global variables and just use those? What are the benefits / setbac...
Hi all,
I would like to ask a question about a new and large scale web project's javascript requirements. We will use lot of javascript, ajax requests, jquery, json objects & jquery plugins in our project. We planning to store global variables and lot of default values in a global site configuration file with php class and ini file on s...
The scenario I am particularly interested is multiple servers having daemons that run on certain configuration parameters. (since, this is a learning exercise. i welcome any thought beyond this particular case)
The question is, where should the configuration parameters sit.
A. a central database table
B. a config file pushed to each o...
I have a class library which I want to call from my .NET application as well as expose via COM and call from for example excel.
This class library needs to get some values from a config file. When referencing from my .NET application I can of course just put the stuff it needs in the app.config. But I can't do this when calling from ex...
i created a data access layer dll using subsonic. however it uses the connectionstring from the app.config.
i am using it in ninjatrader and dont want to mess around with the ninjatrader app.config for the connecitonstring. how do i avoid this issue.
...
I want to store settings for my C# application, such that default setttings can be easily shipped with my binaries and the end-user can change them using a simple text editor(or in some other simple way).
I seem to face several alternatives : a .config file, .settings file or a .resx file. What are the pros and cons of these?
Edit1: En...
We use git for most of the web applications we build in our shop, and though the applications themselves use a variety of technologies (PHP, Rails, etc), we generally have a staging and production server for each site. Typically, these servers have different sets of database credentials as well as different environment-based configurati...
Normally, I code as follows for getting a particular item in a variable as follows
try:
config = ConfigParser.ConfigParser()
config.read(self.iniPathName)
except ConfigParser.MissingSectionHeaderError, e:
raise WrongIniFormatError(`e`)
try:
self.makeDB = config.get("DB","makeDB")
except ConfigParser.NoOptionError:
s...
Simple case
I have a Python program that I intend to support on both *nix and Windows systems. The program must be configurable, at least globally. Is there a cross-platform way to address the configuration file?
I.e. I want to write instead of
import platform
if platform.system() == "Windows":
configFilePath = "C:\MyProgram\mainc...
I'm trying to get update values from app.config while it's running. I tried several methods but it still uses old values. How can I get correctly refresh it? I tried these but it didn't work:
MessageBox.Show(Properties.Settings.Default.MyValue);
Properties.Settings.Default.Reload();
Properties.Settings.Default.Upgrade();
Properties.Sett...
I am currently updating a few settings in a rather large *.exe.config file via the *.exe executable by using XLinq to navigate the directories and read / write the values. The problem with updating this way is that changes only take effect after restarting the executable, but I would like the changes to take effect instantaneously. Is th...
We've got an "appliance", based on ubuntu that has some of our own apps running on it (which are distributed as .deb).
Logging is sent through syslog. Syslog.conf is customized so that our apps' messages get sent to a dedicated file.
Are there any gotchas/best practices I should know about in terms of programmatically modifying syslog....
Hi, I am using a web service that requires connection through ssl.
I have the connection configured in my app.config this way:
<binding name="WsDatosSociosSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLoc...
Hi,
I've just been upgrading an Azure project to Visual Studio 2010 and have been taking advantage of the new XML configuration transformation feature that is built into VS2010 web projects. It seems to work great with Azure web roles. I even managed to get the Azure project service configuration file to do a similar thing by following ...
Hi,
We have one custom ESB, which parses the config file to orchestrate different activities.
I am thinking to create one UI workbench through which we can create or modify the existing config file to create or alter the activity flow. Basically, I am trying to simulate the what Visual Studio IDE does for us for Web forms or WPF but r...
Hello all
I am trying to implement pagination in my CI webapp. Now I put the config for pagination inside a config file like this...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['base_url'] = "http://example.com/index.php/home/index";
$config['num_links'] = "9";
$config['per_page'] = "20";
$config...
Hi all
Those configuration files sure can bloat as you add components to your web project. NHibernate, Castle, log4net - they all want a slice of that action.
Instinctively I tend to prefer hardcoded configuration (assuming of course the config data won't change much) - a la Fluent NHibernate. I kind of fear that if the config file bec...
Does anyone have a good system for deciding what to put in the database and what to put in the config file.
My config file is a php array and I have a mysql database.
If for example I have a data set of 5 'rows' that will rarely change (if ever) is it better to keep it in the config file?
I am looking for a rule that I can follow that...
Inspired by this question:
http://stackoverflow.com/questions/19355/how-to-manage-configuration-settings-for-each-developer
How can I manage application configuration settings that are must be set for each developer without checking them into source control on the Java platform?
For example, this is the kind of thing we are doing now:...