8
голосов
5ответов
8684 просмотров

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 co...

1
голосов
1ответов
1502 просмотров

Access config file from a VS Sharepoint Workflow

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 doi...

3
голосов
5ответов
524 просмотров

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...

0
голосов
4ответов
2845 просмотров

.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...

6
голосов
5ответов
4689 просмотров

.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"...

1
голосов
1ответов
312 просмотров

What is the purpose of Opera's "Retarded Image Loading" setting?

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??

2
голосов
1ответов
1429 просмотров

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?

4
голосов
4ответов
19437 просмотров

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

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 co...

7
голосов
4ответов
1648 просмотров

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...

0
голосов
2ответов
489 просмотров

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 e...

0
голосов
3ответов
140 просмотров

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 ...

3
голосов
3ответов
158 просмотров

How can I have super-fast dynamic configuration?

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...

11
голосов
2ответов
995 просмотров

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 ?

2
голосов
3ответов
2665 просмотров

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

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 ...

0
голосов
3ответов
4574 просмотров

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 ...

1
голосов
2ответов
1003 просмотров

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" pas...

1
голосов
2ответов
1048 просмотров

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 Co...

2
голосов
3ответов
1562 просмотров

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

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...

82
голосов
4ответов
37695 просмотров

Which design patterns can be applied to the configuration settings problem?

In large and complex software products managing configurable settings becomes a major pain. Two approaches I've seen to the problem are: have each component in the system load its own configuration from config files or registry settings. have a settings loader class that loads all the configu...

10
голосов
7ответов
4028 просмотров

What is the best way to serialize Delphi application configuration?

I will answer this question myself, but feel free to provide your answers if you are faster than me or if you don't like my solution. I just came up with this idea and would like to have some opinions on that. Goal: a configuration class that is readable (like an INI-file) but without having to ...

0
голосов
2ответов
1946 просмотров

Internationalization on CodeIgniter config files?

I'm trying to do something like: $config['first_link'] = 'lang:pagination_first_link'; $config['prev_link'] = 'lang:pagination_prev_link'; $config['next_link'] = 'lang:pagination_next_link'; $config['last_link'] = 'lang:pagination_last_link'; Is there a simple way to do this ? This configurat...

2
голосов
2ответов
1833 просмотров

Where should I put log4net config - App.config or AppName.dll.log4net?

I'm using log4net logging in my DLL class library - I'm wondering where people would recommend I put the log4net configuration - in the App.config or in a separate .log4net config file?

1
голосов
1ответов
1237 просмотров

VS Studio Crashes hard with "encountered a user-defined breakpoint" error on any config file

I have a odd problem here I can't figure out. alt text http://billrob.com/images/studioerror.jpg This happens each time I open the web.config file in my project. Studio crashes immediately after clicking close. Clicking debug just opens and empty Studio with the debugger attached to nothing. ...

10
голосов
5ответов
20501 просмотров

How do I turn logging off using log4j?

I am using a third-party library which has a log4j.xml configuration - what's the best way to turn off the logging?

1
голосов
4ответов
446 просмотров

What configuration file format allows the inclusions of otherfiles and the inheritance of settings?

I'm writing a Multiplayer C++ based game. I need a flexible file format to store information about the game charactors. The game charactors will often not share the same attributes, or use a basew For example: A format that would allow me to do something like this: #include "standardsettings...

1
голосов
1ответов
1712 просмотров

Better way for using settings in Spring.NET configuration file?

Is there a better way for using settings (generated by Visial Stidio Settings editor) in Spring.NET configuration file than using PropertyRetrievingFactoryObject: <object id="myUri" type="Spring.Objects.Factory.Config.PropertyRetrievingFactoryObject, Spring.Core"> <property name="...

4
голосов
3ответов
5877 просмотров

JBoss/EJB - location of custom configuration file

I'm implementing an EJB-based system in JBoss. One of my message driven beans will be responsible for sending emails. I want the email template to be stored externally (probably as XML) so that it can easily be changed without having to change the code/redeploy the bean, etc. Where should this...

1
голосов
1ответов
1462 просмотров

Winforms: Write app.settings during Setup

I've battled with modifying Configuration settings in the App.config file in the past, and gave up any hope of making it work. Now again, I find myself in the same shoes, but this time determined to sort it out! The application Im creating is a WindowsForms .NET 3.5 (SP1) app. It is to be used ...

7
голосов
2ответов
8738 просмотров

How can I get ConfigurationManager to load application settings from multiple files?

I'm writing applications that interoperate with a third-party application. This application exposes an API to developers via methods in a DLL. Some time ago, the vendor of this app started integrating their own .NET components into their program, and when they did, they decided that their compo...

2
голосов
2ответов
837 просмотров

Encrypt ccnet.config TFS login details

I have a ccnet.config file which uses my login details to a tfs server. Here is a example: <sourcecontrol type="vsts" autoGetSource="true" applyLabel="false"> <server>http://TFSSERVER</server> <username>USERNAME</username> <password>PASSWO...