473,326 Members | 2,127 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,326 software developers and data experts.

Deploying an ASP.NET Web Application

Help!!

What are the best concepts / startegies to deploy an ASP.NET web
application? My idea is work first in Production PC then after completing
the project deploy it on the Web Server. But what about the database - do i
need to reconnect the database and the components-register again the
components in the Web Server. And question like how can i customize the
installation and how can i update the existing files on a deployed ASP.NET
Web application?

thanks in advance - carl
Nov 19 '05 #1
1 3103
A more robust solution, Carl, is to use three levels of servers. You should
have a development server, a test server, and a production server as well as
your own development desktop.

The development, test, and production server should be identitical in every
way from OS and patch level to drive models, configuration, installed
applications and options, and everything in between.

Then you deploy from your desktop to the development server and complete
troubleshooting and development in that environment.

When going to the test server, you want to migrate the completed code from
the development server to the test server using the exact migration tools,
scripts, or procedures that you will use to migrate from test to production.
As a developer, you don't want to touch the test server directly other than
by triggering the migration mechanism. That way you know that when you
migrate from test to production you will get identical results as when you
migrate from development to test. In my environment, developers (rightfully
so) cannot migrate from test to production. That must be done by the
application owner or project sponsor or their designee. But even so, the
process that they trigger to perform the migration must be identical to the
process used to migrate from development to test.

Also, you will want to apply the same rules to your database servers,
similarly testing your database creation or change scripts.

In my current environment, we have set a value in the appSettings section of
machine.config to determine the environment such as <key="AppEnv"
value="Local"> or set value to "Development", "Test", "Production", as
appropriate, then testing that value using
System.Configuration.ConfigurationSettings.AppSett ings["AppEnv"] to
determine the current environemnt.

Finally, in the web.config file for the application we set values to point
to web service URLs and database connection strings based on the application
environment, for instance: <key="connectionString-Development" value="data
source=myDevServer;initial catalog=MyDB;Integrated Security=SSPI;packet
size=4096"> and consume that value with code similar to:

if (System.Configuration.ConfigurationSettings.AppSet tings["AppEnv"] !=
null)
{
// Get the environment; choices are Local, Development, Test, and
Production
appEnv =
(string)System.Configuration.ConfigurationSettings .AppSettings["AppEnv"];

// If the appropriate AppEnv SqlConnectionString exists in the
// web.config, get the connection string
if
(System.Configuration.ConfigurationSettings.AppSet tings["SqlConnectionString"
+ "-" + appEnv] != null)
{
sqlConnectionString =
(string)(System.Configuration.ConfigurationSetting s.AppSettings["SqlConnectionString"
+ appEnv]);
}
}

Hope this helps,

DalePres
MCAD, MCDBA, MCSE
"Carl" <ca***************@yahoo.com> wrote in message
news:uF**************@tk2msftngp13.phx.gbl...
Help!!

What are the best concepts / startegies to deploy an ASP.NET web
application? My idea is work first in Production PC then after completing
the project deploy it on the Web Server. But what about the database - do
i
need to reconnect the database and the components-register again the
components in the Web Server. And question like how can i customize the
installation and how can i update the existing files on a deployed ASP.NET
Web application?

thanks in advance - carl

Nov 19 '05 #2

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

Similar topics

1
by: Prem | last post by:
Hi All I have a portal application that we have built that contains links to different modules. There is no static binding to these dlls from the application so that we can deploy some modules...
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
0
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
1
by: dfererer | last post by:
Dear all, I want to install and run ClickOnce Deploying application under a Windows Service,I have make the service starting the application successfully(user API...
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
3
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and...
0
by: Amit | last post by:
Hi,I am new to .net 2.0 and have just built one web application and deployed the application on web server. The problem which i am facing is that if i make any changes in the .cs files or aspx...
0
by: sanjaypasumarty | last post by:
Hello, I am facing issues when i am deploying application on WebSphere Process server. The appplication is not deploying successfully and showing some DB2 errors in the logs. We are unable to find...
8
by: =?Utf-8?B?V2hpc2tleVJvbWVv?= | last post by:
I am trying to copy files and folders onto a production machine (Windows 2003 web edition -- we had to install the .NetFramework 2.0 on it). I wasn't even sure which files to copy for a ASP.NET...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.