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

Application Locking

I have an account with an ISP (I do not control the server). I have a series
of ASP web pages that form a "logical application" from my point of view but
I wonder if the Application objects see it that way? I have a situation
where one of the web pages may detect that a new text file has been uploaded
and it needs to start processing the uploaded file. I use an Application
object to indicate that processing of uploaded files is underway
(Application("Processing") = 1). Any other session that opens that page
checks that application object and skips the check for new files if the
object = 1. When upload file processing is complete, the files are deleted
and the application object is set to zero.

I am seeing some weird loops very infrequently and after checking all the
code and such I am beginning to suspect that I have two sessions working
with files at once.

My question: what is the scope of an application object? Some of the
material I've read implies that the "Application" environment is at the
server level? When using an ISP account can the application object be used
in the way I describe?

TIA

Wayne
Jul 19 '05 #1
2 1200
Applications are defined at the IIS level. An application can be your whole
site, or you can setup a subdirectory to be its own application that
contains its own directories and what not. Unless you've requested
otherwise from your ISP, your whole site is probably configured as one
application.

Ray at home

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
I have an account with an ISP (I do not control the server). I have a series of ASP web pages that form a "logical application" from my point of view but I wonder if the Application objects see it that way? I have a situation
where one of the web pages may detect that a new text file has been uploaded and it needs to start processing the uploaded file. I use an Application
object to indicate that processing of uploaded files is underway
(Application("Processing") = 1). Any other session that opens that page
checks that application object and skips the check for new files if the
object = 1. When upload file processing is complete, the files are deleted
and the application object is set to zero.

I am seeing some weird loops very infrequently and after checking all the
code and such I am beginning to suspect that I have two sessions working
with files at once.

My question: what is the scope of an application object? Some of the
material I've read implies that the "Application" environment is at the
server level? When using an ISP account can the application object be used
in the way I describe?

TIA

Wayne

Jul 19 '05 #2
Thanks Ray. That seems like a reasonable interpretation. I am going to check
with my ISP to see how they handle that.

Wayne

"Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Applications are defined at the IIS level. An application can be your whole site, or you can setup a subdirectory to be its own application that
contains its own directories and what not. Unless you've requested
otherwise from your ISP, your whole site is probably configured as one
application.

Ray at home

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:us**************@TK2MSFTNGP12.phx.gbl...
I have an account with an ISP (I do not control the server). I have a

series
of ASP web pages that form a "logical application" from my point of view

but
I wonder if the Application objects see it that way? I have a situation
where one of the web pages may detect that a new text file has been

uploaded
and it needs to start processing the uploaded file. I use an Application
object to indicate that processing of uploaded files is underway
(Application("Processing") = 1). Any other session that opens that page
checks that application object and skips the check for new files if the
object = 1. When upload file processing is complete, the files are deleted and the application object is set to zero.

I am seeing some weird loops very infrequently and after checking all the code and such I am beginning to suspect that I have two sessions working
with files at once.

My question: what is the scope of an application object? Some of the
material I've read implies that the "Application" environment is at the
server level? When using an ISP account can the application object be used in the way I describe?

TIA

Wayne


Jul 19 '05 #3

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

Similar topics

16
by: Nid | last post by:
How do I do row-level locking on SQL Server? Thanks, Nid
5
by: Steve_CA | last post by:
Hello all, I've been recruited to assist in diagnosing and fixing a performance problem on an application we have running on SQL Server 7. The application itself is third party software, so we...
3
by: Job Lot | last post by:
How can I lock records in VB.NET application using ADO.NET?
12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
8
by: Gaensh | last post by:
HI, I have a singleton pattern to acess my database the following is the sample code use to implement singleton pattern public class DataAccessHelper { private static DataAccessHelper instance;...
5
by: Stephane | last post by:
Hi, I want to keep a list of my visitors in an ArrayList which I place in the application object like this: Application("Visitors") = new ArrayList(); // The list of visitors Then, each...
4
by: John Cosmas | last post by:
I need to execute some threads that load items into my APPLICATION object. I haven't figured out how to do that when I fire off a thread on a page, that takes its time and loads data into the...
22
by: roadrunner | last post by:
Hi, Our website has recently been experiencing some problems under load. We have pinpointed a particular function which slows dramatically when we have these problems. Normally it should execute...
0
by: xpding | last post by:
Hello, I have a class MyEmbededList contains a generic dictionary, the value field is actually the MyEmbededList type as well. There is another class need to access and manipulate a list of...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.