473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to write configuration variable in a deployment project?

I would like to gather data from the user in the startup phase. Then
to create a Configuration variable from which connection objects will
read their connection string. (Dynamic binding)
How can I assign a value to a configuration variable during deployment
phase ?
Is there another way to configure the connection strings of connection
objects during deployment? Where do I write the code?
Is there an example explaining this?
Nov 15 '05 #1
1 1644
Manu,

I'm not quite sure what you mean by configuration variable. If you mean
the config file, then you will have to manually edit that yourself. You can
use the classes in the System.Xml namespace to do this.

As for configuring the connection strings, that's up to you. Because it
is a string, it should be easy to store anywhere you wish, a file, AD, the
registry, etc, etc.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Manu" <ec*@bezeqint.net> wrote in message
news:a3*************************@posting.google.co m...
I would like to gather data from the user in the startup phase. Then
to create a Configuration variable from which connection objects will
read their connection string. (Dynamic binding)
How can I assign a value to a configuration variable during deployment
phase ?
Is there another way to configure the connection strings of connection
objects during deployment? Where do I write the code?
Is there an example explaining this?

Nov 15 '05 #2

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

Similar topics

5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
1
by: Jaroslaw Sos | last post by:
Hi, I would like to give all users write access to a part of my application configuration files. It should work for every user on the system and not just the logged in user. Any ideas how it...
1
by: Brian Patrick | last post by:
I downloaded the Web Deployment Project at: http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx This is supposed to integrate with VS.net, adding some new configuration...
10
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
In a web deployment project I want to encrypt the connection strings. I use to do this with a batch file with something like this. aspnet_regiis.exe -pef "connectionStrings" ..\ -prov...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file,...
3
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
I have an asp.net project with an WebDeployment Project. At the end of the msbuild file I put: <Target Name="AfterBuild"> <Exec WorkingDirectory="$(OutputPath)"...
4
by: Max2006 | last post by:
Hi, When I use Web Deployment Project to create a deployment image of my web site, It includes un-necessaty files such as *.csproj files. Can I disable the deployment of *.csproj files?
0
by: mohaaron | last post by:
I recently added a web deployment project to my vs.net 2005 solution to deploy a assocated web site project. When I originally added the web deployment project to the solution I had one other class...
5
by: Cirene | last post by:
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs these options? I want to make sure no one can pull up/read/download my vb...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
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...

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.