configuration-files

Trying to open a section from the web.config spans a ConfigurationErrorsException: The entry KEY has already been added

Hi all, I'm trying to fetch some settings from my membership provider in my asp.net application (so that I don't have to duplicate the information in the appSettings section) but I am getting the following exception: System.Configuration.ConfigurationErrorsException: The entry 'MyMembershipProvider' has already been added. (C:\Inetpub\...

Representing a complex Perl data structure containing array references in Config::General

I have the following data structure in Perl code: my $config = { 'View::Mason' => { comp_root => [ [ 'teamsite' => 'root/teamsite' ], [ 'components' => 'root/components' ], ], }, }; I'm trying to represent this structure in a Config::General configuration file. So far I have: <Vi...

web.config custom ConfigurationSection and unnecessary verbosity

Unless I am doing something wrong, the way I am supposed to use ConfigurationSection, ConfigurationElement and ConfigurationElementCollection, would require me to format my configuration section like so: <serviceAuthorization> <credentials> <login username="system" password="password" mode="include"> <services> ...

How to save a configuration file / python file IO

I have this python code for opening a .cfg file, writing to it and saving it: import ConfigParser def get_lock_file(): cf = ConfigParser.ConfigParser() cf.read("svn.lock") return cf def save_lock_file(configurationParser): cf = configurationParser config_file = open('svn.lock', 'w') ...

It is possible to have different web.config files for a Team Foundation Server project?

Hi folks, I've got a simple ASP.NET MVC website. It has Debug, Testing and Release configuration modes. We're using TFS as our source control and bug tracking, etc. Nice. Now, we're about to embark on using Team Builds to automate some Continuous Intergration. The thing is, we're not sure how to make it so that if we want to make a DE...

How to set different username by repository in Mercurial ?

I am working on projects for different clients using Mercurial as a VCS. I know how to set a default user, but is there a mean to set a different user for each project ? ...

How can I have super-fast dynamic configuration?

Hi, We're planning to migrate away from a series of static config files related to each client deployment. All client data lives in MySQL, the meta-data for a client deployment lives in a static text file: what database/shard to use, the repository directory/location for the file store, and a bunch more info such as default pagination...

line of bash code from .configure file

I need to understand the following line of code: BIN_DIR=`grep BIN_DIR= $SMLCM | head -1` where $SMLCH contains a path This is what I understood so far: grep will produce some string(s), possible paths. What does grep do with BIN_DIR=? the pathes are passed to head and all files within the paths will be used to extract their first ...

Using multiple .settings classes from a class library, how to proceed?

Having two projects: one is a class library (a .dll assembly) and the other is a GUI (.exe) using the class library. In the class library, I've added two .settings files (which automatically adds the app.config file to the project) using all "application" settings. When I compile the project I effectively get the MyLib.dll.config file i...

Subversion management of project configuration files

What is best practice for using subversion (SVN) for managing a project that requires a single configuration file that has multiple concurrent versions for different environments. I.e. Project ABC is used for three different environments, that use the same code, except for a slightly modified configuration file. AND Project ABC is al...

How to migrate Weblogic's config.xml to multiple machines?

Hi all, our development team develops a J2EE application that runs on Weblogic 10.3. Each development machine runs its own copy of Weblogic 10.3 application server. The development environment's Weblogic domain was initially created on one machine and then copied onto all the machines using Weblogic's configuration tool (bea10/wlserver_...

Visual Studio intellisense for custom app.config settings?

I'm working with custom sections in app.config, and would find very useful the same intellisense facilities as exist for the standard settings. I assume I'd have to supply a schema somewhere, but can't work out if/where. Is this possible? ...

Retarded Image Loading?

The opera.ini file for Opera web browser has a setting called "Retarded Image Loading" under UserPrefs. I can't find an explanation for this anywhere, but I can find it in others' copy/paste on message boards. What is it for?? ...

.NET 3.5 DLL using its own config file

I need to have a .NET 3.5 DLL have its own config file. This DLL could be called from many different apps so the information (like connection strings) stored in the config file needed to be kept in a config file that the DLL can reference. What I want is when the DLL is used, I need to "switch" the config file that is used to reference...

.NET Configuration File - Should I Use OpenMappedExeConfiguration

To begin I have a .NET 2.0 console application. To meet a customer requirement, I need to use a configuration file which is in a different directory than my application in a read/write manner. This is in addition to the exe configuration which my app already has (ie appname.exe.config). So to do this, I added a property Configuration wh...

Making a Perl script detect changes in a separate config module also in Perl.

G'day, We have a Perl script that is processing geolocation requests from the head-end servers in a major web site. The script is a broker providing additional business logic interpreting the data returned by a COTS product that provides data for a given IP address, e.g. country, connection type, routing type, carrier, etc. This Geo se...

Access config file from a VS Sharepoint Workflow

Hi, I want to store some setting in web.config file of the sharepoint web application or in app.config of the workflow itself. But i don't know how to access neither of these files and i don't know how to handle the data inside them. Please, give some advise, how to do this or where to read about doing this. Any information is helpful....

How can I specify an alternate config file for a WCF client?

I am working on a large system, for which I have to use WCF to access a web service. My test code works fine, now I need to integrate my WCF client code into the larger system. I cannot add to the existing 'app.config' file, and would like specify a separate .config file for use by my client code. How best can I accomplish this? Than...

Problem with PHP and mail() on Windows

I'm currently trying to debug an Elgg-based website (I didn't develop it) and I would like to send the emails directly from local development machine (WinXP). I'm running WAMP with Apache 2.2.11 and PHP 5.3.0 After some searching, the simplest solution that I've come across is using fake sendmail to forward it to my GMail/Google apps ac...

modifying Linq-to-SQL connection in dbml?

Am I understanding correctly, and the database connection string for Linq to SQL is typically stored in the app.config file, in the connectionStrings section? Are there other places it might be done, typically? Thanks! ...