Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion

Hosting Discussion > Web Hosting Forums > Website Development & Design > Update ASP pogram code while web client accessing
forgot password?


  Post #1 (permalink)   02-10-2010, 02:19 AM
HD Newbie
Join Date: Jan 2010
Posts: 10

Status: shakemelikeapig is offline
I'm a newbie in web programming. My boss called me to write a console application that eventually overwrites a ASP file. My question is if the ASP is heavily requested by web clients, will my console application crash?

  Post #2 (permalink)   02-10-2010, 10:14 AM
HD Wizard
Join Date: Mar 2005
Location: Atlanta, GA
Posts: 2,264

Status: handsonhosting is offline
If you write to a file while someone else is reading it, then it can cause a problem - especially if it's a dynamic file. If it's static, you likely won't have too much of an issue.

However, just like if you update Internet Explorer, Firefox or any other program, they recommend to shut down the program BEFORE upgrading. This ensures that there's no corruption in the process. If your boss can't give you a few minutes to update a file, then there's something wrong in that picture too.

Application should already be tested and working, just need to shut down briefly, overwrite the file, then re-enable. If it's only one file, total time is less than 30 seconds.
Emerson Nogueira
cPanel Web Hosting, Domain Registration, Managed VPS Servers

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: