473,397 Members | 1,972 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,397 software developers and data experts.

Production vs. development

Hello,

I have just put a new virtual server in place that I intend to make my
development server. I would like to develop and test on that new
server, and host my production apps on my production server. I also
have identical databases on each server.

Now, when I first brought up my app by going to the development
server's URL, I got an access denied error on a Connection String in
my app. OK, fine, I can just change it to fit my development server
for now. But going forward, I would have to change several files,
several times to achieve the same result every time I wanted to copy
something from my dev server to my production server.

Does anyone have a good way to get around this?

Sep 13 '07 #1
2 1959
This will be fast, as I don't have a huge amount of time.
Create a separate file for the connection strings. You link it like so:

<connectionStrings configSource="db.config" />

You can then remove this file from your deployment before you push it out to
production and leave the db.config file for production out there. I will
have to check on connection strigns, but app settings can be set up like so:

<appSettings file="local.config">

<add key="communicationPort" value="1732"/>

</appSettings>

If the local.config file does not exist on your dev server, it will use the
keys from the block. You then set up the local.config out on the server for
the changes and it overrides any values from development.
I would also look up local.config, as it is somehow automagically removed
from deployment. We use that for app settings that change from local to
production.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"gsauns" <gs****@gmail.comwrote in message
news:11*********************@19g2000hsx.googlegrou ps.com...
Hello,

I have just put a new virtual server in place that I intend to make my
development server. I would like to develop and test on that new
server, and host my production apps on my production server. I also
have identical databases on each server.

Now, when I first brought up my app by going to the development
server's URL, I got an access denied error on a Connection String in
my app. OK, fine, I can just change it to fit my development server
for now. But going forward, I would have to change several files,
several times to achieve the same result every time I wanted to copy
something from my dev server to my production server.

Does anyone have a good way to get around this?

Sep 13 '07 #2
look at deployment projects. they support separate files for config
sections. as they build a dir for each deployment, you dev enviroment
can be debug, and production not.

-- bruce (sqlwork.com)

gsauns wrote:
Hello,

I have just put a new virtual server in place that I intend to make my
development server. I would like to develop and test on that new
server, and host my production apps on my production server. I also
have identical databases on each server.

Now, when I first brought up my app by going to the development
server's URL, I got an access denied error on a Connection String in
my app. OK, fine, I can just change it to fit my development server
for now. But going forward, I would have to change several files,
several times to achieve the same result every time I wanted to copy
something from my dev server to my production server.

Does anyone have a good way to get around this?
Sep 13 '07 #3

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

Similar topics

5
by: Bill Willyerd | last post by:
I have been looking for some documentation that would support or reject my opinion on Production -vs- Development naming conventions. I believe that each environment should be housed on separate...
3
by: Bill Willyerd | last post by:
Hello All, I have been searching for a published document for Best Practices concerning access levels based on roles. Should developers have more than (if at all) select level access to...
4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
6
by: Klaus Jensen | last post by:
Hi! I have a pretty traditional setup where I develop on my local PC and the use "Copy Project" to deploy to the production enviroment.. In web.config I need different values for...
0
by: Norman | last post by:
I have the following setup working in development (local machine - XPPro/sp2) but it does not work in production (Server 2003/IIS6 over Internet): I have a frameset, opened as a modal dialog via...
1
by: bay_dar | last post by:
We are wondering what is the best way to go about managing production and development versions of our ASP.NET applications. We often publish a production version of a .NET application but then we...
8
by: James | last post by:
Say I have a project that I have hosted locally. I have a separate machine which is our production environment. To do our deploys, we've been copying/pasting the folder from our local machines...
3
by: RichardLamont | last post by:
We often have to migrate changes to sql server 2000 databases from development to production. Normally we dump the sql from Enterprise Manager for production and development and do a diff (using...
5
by: greg | last post by:
Written in Asp.Net 2.0 The session_start fires on Development server running withing Visual Studio 2005 and also if access web site via localhost on development machine. But if copy to...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
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.