473,657 Members | 2,348 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best method to update live server?

We've been using dotNet for a couple of years now and have been updating our
live server by just overwriting (Explorer drag and drop) the aspx and
assembly files until we had some errors reported to us a couple of months
ago that some clients received application server errors at the moment we
updated (if I remember correctly, they were sharing or process in use
errrors). Since then, we've been paranoid about ensuring that there is no
activity when we update, which is awkward to say the least.

I thought dotNet's promise was that there would no longer be any need to
stop services to update the server. Is there a better method to update
assemblies to avoid client errors?
Nov 18 '05 #1
2 2255
the best way to break xcopy install is to just add a modified web.config.
lol (any modication to web.config bounces your app)
i have seen instance where i have modified things and that caused error
messages. But i think as long as you dont modify config files you should
have too many problems using xcopy (or drag and drop. i prefer copy project)

have a look at the links here
http://www.google.co.uk/search?sourc...%2Enet+problem
--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Stephen Brown" <no****@teluspl anet.net> wrote in message
news:ci******** **@utornnr1pp.g rouptelecom.net ...
We've been using dotNet for a couple of years now and have been updating our live server by just overwriting (Explorer drag and drop) the aspx and
assembly files until we had some errors reported to us a couple of months
ago that some clients received application server errors at the moment we
updated (if I remember correctly, they were sharing or process in use
errrors). Since then, we've been paranoid about ensuring that there is no
activity when we update, which is awkward to say the least.

I thought dotNet's promise was that there would no longer be any need to
stop services to update the server. Is there a better method to update
assemblies to avoid client errors?

Nov 18 '05 #2
..net does not guarantee anything. it minimizes the problem, but does not
eliminate it.

background:

1) each website is really an appdomain. this is the running code.
2) when a page is hit, if it is not in the appdomain, its compiled and added
to the appdomin.
3) if the source of a page is changed, the next time its hit it is
recompiled and added to the appdomain.
4) both the old code and new code exits in the appdomain, so that if a
request is running when a new request comes, the new request gets the new
code
5) if too many pages are recompiled, an appdomain recycle happens. this
means a new appdomain is loaded. as soon as the thread of the old domain
finish its unloaded.
6) an appdomain recyle clears all session data for the inproc session
manager

this all works great if you only use aspx pages and codebehind files. if you
use visual studio, and its code behind model, you can run into timing
problems.

say your app has 2 dlls and three pages:

ui.dll
businessobject. dll
page1.aspx
page2.aspx
page3.aspx

now you start the copying in new files.

here are someways it will fail

1) user hits page3.aspx, it the old code, but the ui.dll has been updated.
the page may be loaded into new appdomain with the new dll, but its not
comaptable with the new dll.
2) user hits page1.aspx., its the new code, but the ui.dll has not arrived,
it loaded with the old dll and doen;t work.
3) you are using inproc sessions, and the appdomain recycles, and your pages
don't handle a cleared session.

you should be able to come up with more cases.

if you have a webfarm, you do a rolling update (pull the server from the
ippool, update and put back.)
if not, you want to do it fast when there is no activity. if its was unix,
you'd copy the site to a temp dir, then swap, but nt will not allow this.
-- bruce (sqlwork.com)





"Stephen Brown" <no****@teluspl anet.net> wrote in message
news:ci******** **@utornnr1pp.g rouptelecom.net ...
We've been using dotNet for a couple of years now and have been updating our live server by just overwriting (Explorer drag and drop) the aspx and
assembly files until we had some errors reported to us a couple of months
ago that some clients received application server errors at the moment we
updated (if I remember correctly, they were sharing or process in use
errrors). Since then, we've been paranoid about ensuring that there is no
activity when we update, which is awkward to say the least.

I thought dotNet's promise was that there would no longer be any need to
stop services to update the server. Is there a better method to update
assemblies to avoid client errors?

Nov 18 '05 #3

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

Similar topics

7
2155
by: Dave Smithz | last post by:
Hi There, I have taken over someone else's PHP code and am quite new to PHP. I made some changes and have implemented them to a live environment fine so far. However, I now want to setup a test environment. All the PHP scripts start with a few lines of: require_once "library file at specific location on server"
131
21632
by: Peter Foti | last post by:
Simple question... which is better to use for defining font sizes and why? px and em seem to be the leading candidates. I know what the general answer is going to be, but I'm hoping to ultimately get some good real world examples. Fire away! :) Regards, Peter Foti
16
3018
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For example dsParts.xsd and including that in the data tier. I then will create a class that looks like this Public Class CPart Inherits dsParts
136
9305
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
12
3736
by: Aaron Smith | last post by:
What is the best way to handle data in a multiple user environment? We have forms that will allow users to add edit and delete data from a table on SQL server. The data could be edited on multiple machines at the same time. How do you keep the dataset constantly updated with changes made to the data? I'm playing with just calling the fill method, but it seems pretty unstable at times. Especially when deleting records, they don't seem to...
24
2185
by: Earl | last post by:
I have all of my data operations in a separate library, so I'm looking for what might be termed "best practices" on a return type from those classes. For example, let's say I send an update from the UI layer to a method in a library class that calls the stored procedure. Best to return a boolean indicating success/failure, return a string with the exception message, or just return the entire exception?
7
3576
by: Steve | last post by:
I am building an object library for tables in a database. What is the best practice for creating objects like this? For example, say I have the following tables in my database: User: - Id - FirstName - LastName - CompanyId (many-to-one )
0
1960
by: chromis | last post by:
Hi, I am trying to setup a web development server on my company's local network, and I am not quite sure what the best method is. I am basically duplicating the software setup on the live hosting server (iis 6.0, mysql4, php5, coldfusion 7), and my plan at the moment is to allow FTP access on the local network to the websites. Which would then be accessed by dreamweaver on the various client machines. To access the websites a user would key...
2
2660
by: Ashley | last post by:
hey, what's up............................. "Neil" <nospam@nospam.netwrote in message news:8YFwj.10509$0o7.1113@newssvr13.news.prodigy.net...
0
8399
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
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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
8606
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
7337
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
6169
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
5632
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
4159
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...
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.