473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for automatic .config file modifier

DC
Hi,

before I start to program a tool from scratch I wanted to check if
somebody knows an existing solution: we often have the demand to
modify a certain config value in many .config (web.config and
Enterprise Library config - yes we still use them) files. For example:
change <pdfprod>pdf0 1</pdfprodto <pdfprod>pdf0 2</pdfprodin many
web applications with different paths. It's not an xcopy scenario
since the configs differ on the different servers, they just have some
settings in common. So it is required that one is able to configure
the xml file path and the config value's xpath for every entry.

Ideally we would use a web frontend to switch between configured
values and push a button to modify all the values. Since we are
talking about plain xml manipulation: does anybody use such a tool?

TIA for any ideas,
Regards
DC
Jan 14 '08 #1
1 1281

If you really really want to dig and look.

StockTrader Application is a WCF app. Greg Leake is the author.

However, put aside the wcf stuff, and he has a "db values to .config files"
stuff.

Its in its infancy, but is a framework...bas ically if you wanted to deploy
settings to alot of different machines.
Aka, if you have 100 servers in a web farm, you'd want to consider his code
and/or approach.

msdn.microsoft. com/stocktrader/

Again, its in its infancy. Find the simple settings or something like that
code.

COMPANY_NAME or something like that might be an item to look for in the
source code.

He also has 2 videos on channel9 , so you can watch those.

...

"DC" <dc@upsize.dewr ote in message
news:cc******** *************** ***********@q39 g2000hsf.google groups.com...
Hi,

before I start to program a tool from scratch I wanted to check if
somebody knows an existing solution: we often have the demand to
modify a certain config value in many .config (web.config and
Enterprise Library config - yes we still use them) files. For example:
change <pdfprod>pdf0 1</pdfprodto <pdfprod>pdf0 2</pdfprodin many
web applications with different paths. It's not an xcopy scenario
since the configs differ on the different servers, they just have some
settings in common. So it is required that one is able to configure
the xml file path and the config value's xpath for every entry.

Ideally we would use a web frontend to switch between configured
values and push a button to modify all the values. Since we are
talking about plain xml manipulation: does anybody use such a tool?

TIA for any ideas,
Regards
DC

Jan 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2139
by: Alexander DEJANOVSKI | last post by:
Hi all, I'm starting a new project to develop an Open-Source EAI server in Python and I'm looking for motivated developpers and testers. It is inspired by Open Adaptor (www.openadaptor.org), but aims to be easier to use and more powerful. I've developped yet a first alpha that contains several components: File Source
7
3673
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc. And i have things to offer, and to request. And a lot of ideas, but who needs them.... here's an example (from type_struct.py):
1
1892
by: miannone | last post by:
I was hoping someone could help me out. I have created a WindowsService that runs periodically throughout the day using a timer. This windows service looks into a Microsoft SQL database and looks at a few tables and performs a few operations. It uses a app.config file to read in some settings, such as: database connection string, time to perform its operations, etc This all works well, however if the app.config file is changes (ex. change...
15
7913
by: Kannan Goundan | last post by:
Maintaining a C++ header file can be painful. I want a way to automatically generate header files from the implementation file. Does anybody know of a program that does this? If not, I'd like to try writing one. The input file would consist of function definitions and class definitions (with all methods defined inline). The program would extract all the signatures and place them in a header file. I can see some small problems...
29
4250
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Caching;
2
2270
by: enrique | last post by:
Hello everyone, I'm looking for a "directory path" solution that will allows me to test my app locally and then test on remote web server without having to update my web.config file each time I modify the file. In other words I'm storing the paths (for centralizing purposes) as custom <appSettings> in the web.config. expample (for local testing): <add key="imagePath" value="http://localhost/app_folder/10_media/images/" />
2
4550
by: Maxwell2006 | last post by:
Hi, The inelisence description of "UnhandledExceptionMode.Automatic" explains this: Route all exceptions to the System.Windows.Forms.Application.ThreadException handler, unless the application's configuration file specifies otherwise. How can I configure unhandled exception behavior in configuration file?
6
1302
by: antoan | last post by:
I have tried NDoc 1.3.1 - dues not support .net 2.0 assemblies (have also tried the hack involving a config file using the <supportedruntime version="v2.0.50727"> to no avail - crashes) as well as a beta NDoc 2005 (can initiate conversion from 2005 solution but also crashes - possibly buggy). Can anyone suggest anything I can use to generate help for a VS 2005 project, or from the generated xml from source comments? Antoan
1
1852
by: Prasanth Nair | last post by:
hi, When I add the following in struts-config.xml, I am getting the below mentioned error while starting the server. /***********************Struts entry**********************/ <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/>
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.