473,659 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What can cause the value in Application variable to disappear?

We have ASP application running on IIS 5.1 and Windows 2000 server. The ASP
application has few Application variables setup in global.asa. Something like
this:
Application.Loc k()
Application("fu n")="play"
Application.UnL ock()

There is no other code in the ASP application to change the value in the
Application variables. It's only set in global.asa and the rest of the
application just read it with code similar to this:
Response.Write( Application("fu n"))

The application had been running fine until we deployed a COM DLL to the web
server few weeks ago. Loos like the ASP application started to loose the
value in application variable few times a day. Restarting the web service,
which means re-initialize the value in Application object, fixes the issue
but the value will be blanked out again after few hours.

The COM DLL is written in .Net C# to handle some task. This COM has "private
static" variables in public class. The purpose for "private static" variables
is that the value will be maintained until IIS is restarted.

Is it possible that the memory space for .Net run-time conflicts with the
memory space of ASP Application object? Can someone help me understand what
can cause this to happen?

Thanks a lot!!
Jul 22 '05 #1
2 2888
evangeline wrote:
We have ASP application running on IIS 5.1 and Windows 2000 server.
The ASP application has few Application variables setup in
global.asa. Something like this:
Application.Loc k()
Application("fu n")="play"
Application.UnL ock()

There is no other code in the ASP application to change the value in
the Application variables. It's only set in global.asa and the rest
of the application just read it with code similar to this:
Response.Write( Application("fu n"))

The application had been running fine until we deployed a COM DLL to
the web server few weeks ago. Loos like the ASP application started
to loose the value in application variable few times a day.
Restarting the web service, which means re-initialize the value in
Application object, fixes the issue but the value will be blanked out
again after few hours.
I would rather create a page that does what you do in the
application_ons tart event in global.asa. If the variable is empty, use
Server.Execute to run that page instead of throwing an error, or whatever
consequence is happening to cause you to restart your application.

The COM DLL is written in .Net C# to handle some task. This COM has
"private static" variables in public class. The purpose for "private
static" variables is that the value will be maintained until IIS is
restarted.

Is it possible that the memory space for .Net run-time conflicts with
the memory space of ASP Application object? Can someone help me
understand what can cause this to happen?

I've never seen anything like this. Sorry.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
I'm having the same problem with ASP 3.0 & IIS 5.0, but it's related
only to application variables containing multidimensiona l arrays. It's
very strange, it happens randomly during high & low server load time...

Anybody knows anything about it?

Thanks
Germán Kondolf
System Architect .Net

Bob Barrows [MVP] ha escrito:
evangeline wrote:
We have ASP application running on IIS 5.1 and Windows 2000 server.
The ASP application has few Application variables setup in
global.asa. Something like this:
Application.Loc k()
Application("fu n")="play"
Application.UnL ock()

There is no other code in the ASP application to change the value in
the Application variables. It's only set in global.asa and the rest
of the application just read it with code similar to this:
Response.Write( Application("fu n"))

The application had been running fine until we deployed a COM DLL to
the web server few weeks ago. Loos like the ASP application started
to loose the value in application variable few times a day.
Restarting the web service, which means re-initialize the value in
Application object, fixes the issue but the value will be blanked out
again after few hours.


I would rather create a page that does what you do in the
application_ons tart event in global.asa. If the variable is empty, use
Server.Execute to run that page instead of throwing an error, or whatever
consequence is happening to cause you to restart your application.

The COM DLL is written in .Net C# to handle some task. This COM has
"private static" variables in public class. The purpose for "private
static" variables is that the value will be maintained until IIS is
restarted.

Is it possible that the memory space for .Net run-time conflicts with
the memory space of ASP Application object? Can someone help me
understand what can cause this to happen?

I've never seen anything like this. Sorry.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 22 '05 #3

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

Similar topics

220
19000
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
1
2066
by: Liza | last post by:
Hi guys, can anyone explain line number 5 to me. i don't quite understand what is going on there and why. 1 <script language="vbscript" runat="server">sub Application_OnStart 2 getcustomers 3 end subsub getcustomers 4 set conn=Server.CreateObject("ADODB.Connection")
14
2363
by: uli2003wien | last post by:
Dear group, we are running a SQL-Server Database which is about 30 GB large. The purpose of this database is to contain periodic data from automatic devices which insert values into some tables. Unfortunately most of these tables don't have a key (and a key can only be introduced when the application programmers have changed their software). Tables have this structure
1
1025
by: Carlos | last post by:
Hi again all, this question probably has more to do with the .net language specification (VB or C#), than with ASP .Net, but I am learning along the way, and now I am faced with the need to make the value of a variable that I capture in my start-up page, available in pages that the user will be navigating. Being that the classes are defined in the same namespace, how do I decalre a variable in the page that will be using the variable...
16
2920
by: Colmag | last post by:
I've written an application with vb.net 2003 (framework 1.1) which automates a 3rd party viewing/printing application (via an activex control). I've released several versions over the last year without problem, but since getting a new laptop, people can't run the program since I built it with the new machine. Even if I take the modified code and build it with my old machine, it still crashes. I thought maybe it was the code, but it...
669
25860
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
4
3959
by: Nunzio | last post by:
I am trying to build an email address in PHP code using v5.1.2. All works well until I try to surround the email address with angle brackets. Every method I try causes the email address to disappear completely. I have to believe that this is a common problem, but I can't find any answers in the PHP docs or in Google. Any insight would be greatly appreciated. Below are some of my failed attempts. $strAddressee = "$ContactName...
7
5232
by: gnewsgroup | last post by:
In my asp.net 2.0 web application, in Web.config, I have timeout="30", s l i d i n g E x p i r a t i o n = "true" for the Authentication element. I suppose, this means that as long as we don't let a 30 min elapse without making any request, the session should stay alive, right? But I notice that quite often, the application throws out Null reference exception where I try to access a session variable like so:
34
2375
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What online resources are available? ----------------------------------------------------------------------- * The Official ECMAScript Specification http://www.ecma-international.org/publications/standards/Ecma-262.htm
0
8427
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
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7355
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
6178
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
5649
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
4175
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
1975
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.