473,399 Members | 2,278 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,399 software developers and data experts.

How the Global.asa file changes will take effect?

Hi All,

My website is hosted with the ISP and recently I have modified my Global.asa
file for the ASP application.

So I think we need to restart the World Wide Web Publishing Service so that
the changes in the Global.asa will take effect. I think it will be difficult
for the ISP to restart the Service as there many applications will be
running. So can you suggest how can my global.asa file changes will take
effect so that I can deply those changes?

Thanks
Prabhat
Oct 11 '05 #1
5 6211
Prabhat wrote on 11 okt 2005 in microsoft.public.inetserver.asp.general:
My website is hosted with the ISP and recently I have modified my
Global.asa file for the ASP application.

So I think we need to restart the World Wide Web Publishing Service
so that the changes in the Global.asa will take effect.
No, see below
I think it will
be difficult for the ISP to restart the Service as there many
applications will be running. So can you suggest how can my global.asa
file changes will take effect so that I can deply those changes?


ASP is reported to re-read global.asa after each change in content [size?]
when the first subsequent page is called.

I suppose this means refiring the Application_OnStart sub
[hopefully after a Application_OnEnd]
so a reinitialising of any values [counters!]
placed in the application object,
but not switching of any current sessions.

Is this true, group?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 11 '05 #2
Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242...
: Prabhat wrote on 11 okt 2005 in microsoft.public.inetserver.asp.general:
:
: > I think it will
: > be difficult for the ISP to restart the Service as there many
: > applications will be running. So can you suggest how can my global.asa
: > file changes will take effect so that I can deply those changes?
:
: ASP is reported to re-read global.asa after each change in content [size?]
: when the first subsequent page is called.
:
: I suppose this means refiring the Application_OnStart sub
: [hopefully after a Application_OnEnd]
: so a reinitialising of any values [counters!]
: placed in the application object,
: but not switching of any current sessions.

The application will be restarted. You will lose application and session
variables. All you need to do is save global.asa (You don't need to make any
changes. Windows file change notification will tell IIS that global.asa has
been touched and IIS will restart the app).

Easy to test. Create a global.asa with any content you want (I just used a
comment). Create a test page with the following code:

<%
Application("Counter") = Application("Counter") + 1
Session("Counter") = Session("Counter") + 1

Response.Write(Application("Counter") & "<br>")
Response.Write(Session("Counter"))
%>

Hit the test page a few times and increment the counters. Now open
global.asa in notepad and save it (no need to make any changed). Now hit the
test page again. All your counters should have reset.

Cheers
Ken
Oct 11 '05 #3

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:#I*************@TK2MSFTNGP15.phx.gbl...
The application will be restarted. You will lose application and session
variables. All you need to do is save global.asa (You don't need to make any changes. Windows file change notification will tell IIS that global.asa has been touched and IIS will restart the app).

Easy to test. Create a global.asa with any content you want (I just used a
comment). Create a test page with the following code:

<%
Application("Counter") = Application("Counter") + 1
Session("Counter") = Session("Counter") + 1

Response.Write(Application("Counter") & "<br>")
Response.Write(Session("Counter"))
%>

Hit the test page a few times and increment the counters. Now open
global.asa in notepad and save it (no need to make any changed). Now hit the test page again. All your counters should have reset.

Cheers
Ken

Hi Ken, Thanks for the Info. Then it is very easy when the website is
hosted with ISP and we donot have access to restart the Service. So this is
Windows File Change Notification will send message to IIS about the File
Change and Application will restart.

Thanks
Prabhat
Oct 11 '05 #4

"Prabhat" <no********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
:
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:#I*************@TK2MSFTNGP15.phx.gbl...
:
.. So this is
: Windows File Change Notification will send message to IIS about the File
: Change and Application will restart.

That is correct. If you have any existing users on your site though, they
will lose their sessions.

Cheers
Ken
Oct 11 '05 #5

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uW*************@tk2msftngp13.phx.gbl...

:
. So this is
: Windows File Change Notification will send message to IIS about the File
: Change and Application will restart.

That is correct. If you have any existing users on your site though, they
will lose their sessions.

Cheers
Ken

Hi Ken, Just tested the logic and it is working fine. And yes the Existing
users will lose their Sessions, So I need to deply the files only after the
Mid Night.

Thanks
Prabhat
Oct 11 '05 #6

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

Similar topics

8
by: David Hitillambeau | last post by:
Hi guys, As I am new to Python, i was wondering how to declare and use global variables. Suppose i have the following structure in the same module (same file): def foo: <instructions>...
7
by: Matt Calhoon | last post by:
Hi there, How does IIS 6.0 treat the global.asa file? I had the following problem; 1. uploaded a new site to the win3k server 2. had incorrect db connection string in Session_OnStart in...
2
by: mbosco51 | last post by:
Hi. I have to make a change to the global.asa file on a website. I've never modified this file before. Are there any special steps needed such as restarting IIS or rebooting the machine to make...
1
by: Sandman | last post by:
Below you find a small test page. I contains an input box, with an onBlur event, and a form, with an onSubmit event. When I place the cursor in the text box and push ENTER, first the onBlur...
10
by: Kleenex | last post by:
Reason: I am working on an embedded project which has very limited memory (under 512 bytes, 60 or so of which is stack space), which translates into limited stack space. In order to save on stack...
22
by: fd123456 | last post by:
Hi Tom ! Sorry about the messy quoting, Google is playing tricks on me at the moment. > Global.asax is where you normally have the Global Application > and Session variables and code to...
2
by: Steve | last post by:
I am new to this newsgroup & to .NET in general. I have been playing around with Visual Studio .NET, building and rendering web pages using VB "code behind" files. My problem / question is; How...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
5
by: =?Utf-8?B?bWNxd2VydHk=?= | last post by:
Hello, I'm trying to enable an error handling package at the root of my web server by editing this file: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config In the httpHandlers...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
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...
0
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,...

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.