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

Global ASA Issues

MDW
I would like to start using the global.asa file on an ASP app to store
information like connection strings, contact e-mail addresses, etc. However,
the person I report to is nervous about this, mostly because he's never been
exposed to it.

He is of the opinion (because he "thinks he heard somewhere") that
application variables - and the ASA file in general - is bad. He's giving me
a bit of push-back until I can satisfy him that introducing this won't cause
problems for the site.

Anything I could find on the MSDN just says how to use it, how it works,
etc...which is stuff I already know. Has anyone had any problems with the ASA
file? Does it cause any performance lagging? Is there any chance that the
Application_OnStart event won't fire?

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!
Jul 22 '05 #1
8 1260
The problem he heard is likely with storing objects...

Try :
http://support.microsoft.com/kb/243543/EN-US/

Patrice
--

"MDW" <MD*@discussions.microsoft.com> a écrit dans le message de
news:71**********************************@microsof t.com...
I would like to start using the global.asa file on an ASP app to store
information like connection strings, contact e-mail addresses, etc. However, the person I report to is nervous about this, mostly because he's never been exposed to it.

He is of the opinion (because he "thinks he heard somewhere") that
application variables - and the ASA file in general - is bad. He's giving me a bit of push-back until I can satisfy him that introducing this won't cause problems for the site.

Anything I could find on the MSDN just says how to use it, how it works,
etc...which is stuff I already know. Has anyone had any problems with the ASA file? Does it cause any performance lagging? Is there any chance that the
Application_OnStart event won't fire?

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!

Jul 22 '05 #2
CJM
Storing connection strings and similar things in Application variables is a
very sensible approach - though not the only approach.

As Patrice has indicated, storing objects (particular non-agile objects
AFAIK), however, is a Bad Thing (tm), for the reasons indicated.

I would try and turn the argument around on your boss - what argument has he
got against Application Variables...??

"MDW" <MD*@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I would like to start using the global.asa file on an ASP app to store
information like connection strings, contact e-mail addresses, etc.
However,
the person I report to is nervous about this, mostly because he's never
been
exposed to it.

He is of the opinion (because he "thinks he heard somewhere") that
application variables - and the ASA file in general - is bad. He's giving
me
a bit of push-back until I can satisfy him that introducing this won't
cause
problems for the site.

Anything I could find on the MSDN just says how to use it, how it works,
etc...which is stuff I already know. Has anyone had any problems with the
ASA
file? Does it cause any performance lagging? Is there any chance that the
Application_OnStart event won't fire?

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!

Jul 22 '05 #3
MDW
> I would try and turn the argument around on your boss - what argument has he
got against Application Variables...??


As I said, he "heard they were bad"...and then it falls on me to prove or
disprove the theory.

His biggest concern, I think, is that it would degrade performance. However,
we're talking about a matter of half a dozen string variables. Nothing too
frightening, at least to me. (No need to worry about my trying to store
objects; I graduated from the school of "create - use - destroy" programming.)

Other than with objects, would the use of application variables have a
NOTICABLE effect on performance? I don't think our site has ever had more
than 100 simultaneous users.
Jul 22 '05 #4
MDW
Thanks Patrice. I printed that article (and another one referenced by that
article). That should help.

"Patrice" wrote:
The problem he heard is likely with storing objects...

Try :
http://support.microsoft.com/kb/243543/EN-US/

Patrice
--

"MDW" <MD*@discussions.microsoft.com> a écrit dans le message de
news:71**********************************@microsof t.com...
I would like to start using the global.asa file on an ASP app to store
information like connection strings, contact e-mail addresses, etc.

However,
the person I report to is nervous about this, mostly because he's never

been
exposed to it.

He is of the opinion (because he "thinks he heard somewhere") that
application variables - and the ASA file in general - is bad. He's giving

me
a bit of push-back until I can satisfy him that introducing this won't

cause
problems for the site.

Anything I could find on the MSDN just says how to use it, how it works,
etc...which is stuff I already know. Has anyone had any problems with the

ASA
file? Does it cause any performance lagging? Is there any chance that the
Application_OnStart event won't fire?

Thanks.
--
Hmm...they have the Internet on COMPUTERS now!


Jul 22 '05 #5
"MDW" <MD*@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I would try and turn the argument around on your boss - what argument has he got against Application Variables...??
As I said, he "heard they were bad"...and then it falls on me to prove or
disprove the theory.

His biggest concern, I think, is that it would degrade performance.

However, we're talking about a matter of half a dozen string variables. Nothing too
frightening, at least to me. (No need to worry about my trying to store
objects; I graduated from the school of "create - use - destroy" programming.)
Other than with objects, would the use of application variables have a
NOTICABLE effect on performance? I don't think our site has ever had more
than 100 simultaneous users.


"Application variables are good."
http://www.learnasp.com/learn/globalproblems.asp

"What the benefits are of using session and application variables"
http://www.devarticles.com/c/a/ASP/M...State-With-ASP
Jul 22 '05 #6
MDW
Very helpful. However, a question. On the first article you referenced, it says

"Of course Application variables have no dependence on cookies. They are not
required at all."

However, according to Microsoft
(http://support.microsoft.com/kb/175167/EN-US/), application variables DO
require cookies.

"The Session and Application variables are stored on the server. A
SessionID, which is generated at the start of an ASP session, is an in-memory
cookie that is stored on the client to identify the Session variables. As a
result, the client must have cookies enabled in the browser for Session and
Application variables to work."

Which is right?

"McKirahan" wrote:
"MDW" <MD*@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I would try and turn the argument around on your boss - what argument has he got against Application Variables...??


As I said, he "heard they were bad"...and then it falls on me to prove or
disprove the theory.

His biggest concern, I think, is that it would degrade performance.

However,
we're talking about a matter of half a dozen string variables. Nothing too
frightening, at least to me. (No need to worry about my trying to store
objects; I graduated from the school of "create - use - destroy"

programming.)

Other than with objects, would the use of application variables have a
NOTICABLE effect on performance? I don't think our site has ever had more
than 100 simultaneous users.


"Application variables are good."
http://www.learnasp.com/learn/globalproblems.asp

"What the benefits are of using session and application variables"
http://www.devarticles.com/c/a/ASP/M...State-With-ASP

Jul 22 '05 #7
CJM

"MDW" <MD*@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
I would try and turn the argument around on your boss - what argument has
he
got against Application Variables...??


As I said, he "heard they were bad"...and then it falls on me to prove or
disprove the theory.

His biggest concern, I think, is that it would degrade performance.
However,
we're talking about a matter of half a dozen string variables. Nothing too
frightening, at least to me. (No need to worry about my trying to store
objects; I graduated from the school of "create - use - destroy"
programming.)

Other than with objects, would the use of application variables have a
NOTICABLE effect on performance? I don't think our site has ever had more
than 100 simultaneous users.


Performance-wise it will be at least as fast as storing them in an ini
file/the registry/a DB.

And broadly speaking, it will also be quicker to develop and easier to
maintain than many alternatives...

There are other more subtle benefits - storing a connection string in the
one place helps ensure that connection pooling is used...

Chris

Jul 22 '05 #8
Gazing into my crystal ball I observed =?Utf-8?B?TURX?=
<MD*@discussions.microsoft.com> writing in
news:AB**********************************@microsof t.com:
"McKirahan" wrote:
"MDW" <MD*@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
> > I would try and turn the argument around on your boss - what
> > argument has he got against Application Variables...??
>
> As I said, he "heard they were bad"...and then it falls on me to
> prove or disprove the theory.
>
> His biggest concern, I think, is that it would degrade performance.
> However, we're talking about a matter of half a dozen string
> variables. Nothing too frightening, at least to me. (No need to
> worry about my trying to store objects; I graduated from the school
> of "create - use - destroy" programming.)
>
> Other than with objects, would the use of application variables have
> a NOTICABLE effect on performance? I don't think our site has ever
> had more than 100 simultaneous users.


"Application variables are good."
http://www.learnasp.com/learn/globalproblems.asp

"What the benefits are of using session and application variables"
http://www.devarticles.com/c/a/ASP/M...State-With-ASP

Very helpful. However, a question. On the first article you referenced,
it says

"Of course Application variables have no dependence on cookies. They
are not required at all."

However, according to Microsoft
(http://support.microsoft.com/kb/175167/EN-US/), application variables
DO require cookies.

"The Session and Application variables are stored on the server. A
SessionID, which is generated at the start of an ASP session, is an
in-memory cookie that is stored on the client to identify the Session
variables. As a result, the client must have cookies enabled in the
browser for Session and Application variables to work."

Which is right?


Best thing to do is to test it, then you know for sure. One of the
benefits of having more than one browser, maybe IE, Firefox and Opera. Set
one of them to accept NO cookies, one to only accept Session Cookies, and
the last all cookies, then run a test.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #9

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

Similar topics

4
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB...
1
by: VSK | last post by:
Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in global.asax. Now in this method i will call business...
6
by: martin | last post by:
Hi, I have noticed that every aspx page that I created (and ascx file) has an assosiated resource file aspx.resx. However what I would like to do is have a single global resource file for the...
4
by: Hardy Wang | last post by:
Hi all, In order to solve code-behind of global.asax problem, I removed the code from global.asax, and just leave one line "<%@ Application Language="C#" Inherits="Global"%>" in this file. Then I...
1
by: paulo | last post by:
Hello, I have a DLL library containing some web services which are declared in each .asmx file in the following way: <%@ WebService Language="C#" Class="LibraryName.WebService" %> I would...
9
by: CDMAPoster | last post by:
About a year ago there was a thread about the use of global variables in A97: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/fedc837a5aeb6157 Best Practices by Kang...
3
by: Rodrigo Juarez | last post by:
Hi Microsoft Visual Studio 2005, Visual Basic and winforms application I need a global error handler, where should I put that. Any examples? TIA Rodrigo Juarez
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
4
by: Joe | last post by:
Hello all! I added a Global.asax to my application. I'm using the Application_BeginRequest event. Everything works fine in my development enviorment but when I publish the web site the...
3
by: Peter Larsen [CPH] | last post by:
Hi, I have a problem where the code in Global.asax.cs runs before the unittests (on test of course). In the global file, i load some data from a Oracle table and save it in...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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...
0
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,...
0
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...

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.