For some reason my global.asa file is not firing. I have it located in the
root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have the web
site configured as an "applicatio n" in IIS. When I modified the file I also
stopped and restarted the web server.
Can anyone give me some ideas as to why it is not firing?
Thanks 12 10636
Well, what evidence do you have thatit is not firing? What method is the
"not firing" occuring in? What is the code in that method?
Have you seen http://www.aspfaq.com/2076 and http://www.aspfaq.com/2078 ?
-- http://www.aspfaq.com/
(Reverse address to reply.)
"qaz" <ng****@uslex.n et> wrote in message
news:eX******** ******@TK2MSFTN GP11.phx.gbl... For some reason my global.asa file is not firing. I have it located in
the root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have the
web site configured as an "applicatio n" in IIS. When I modified the file I
also stopped and restarted the web server.
Can anyone give me some ideas as to why it is not firing?
Thanks
My evidence is pretty good. In Application_OnS tart I created an application
variable named Application("te st") and set it equal to "Applicatio n". In
Session_OnStart I set a session variable called session("test") = "Session".
I put response.write statements in test.asp and fired the page.
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Well, what evidence do you have thatit is not firing? What method is the "not firing" occuring in? What is the code in that method?
Have you seen http://www.aspfaq.com/2076 and http://www.aspfaq.com/2078 ?
-- http://www.aspfaq.com/ (Reverse address to reply.)
"qaz" <ng****@uslex.n et> wrote in message news:eX******** ******@TK2MSFTN GP11.phx.gbl... For some reason my global.asa file is not firing. I have it located in the root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have the web site configured as an "applicatio n" in IIS. When I modified the file I also stopped and restarted the web server.
Can anyone give me some ideas as to why it is not firing?
Thanks
Make sure mywebsite is setup as an application, and not a subdirectory of
the parent web. If it is a subdirectory, the root global.asa will fire
instead.
"qaz" <ng****@uslex.n et> wrote in message
news:eX******** ******@TK2MSFTN GP11.phx.gbl...
For some reason my global.asa file is not firing. I have it located in the
root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have the web
site configured as an "applicatio n" in IIS. When I modified the file I also
stopped and restarted the web server.
Can anyone give me some ideas as to why it is not firing?
Thanks
Make sure session cookies are enabled in your browser - Tools, Internet
Options, Privacy, Advanced, check the box "Always allow session cookies"
If you are using IE 5.5 or IE 6.0, and your local server name has an
underscore or other non-alphanumeric character (other than a dash) in the
name, then cookies will not work correctly. One workaround is to access the
machine by IP address; others include renaming the server or at least adding
an entry to the clients' hosts files, or alter your local DNS/WINS, or add a
new host header to the web server, with a more friendly name. For more info,
search http://msdn.microsoft.com/ for Q312461 and Q316112.
Make sure you haven't disabled session state in Internet Services Manager,
and that it has an appropriate timeout value:
Open the Internet Services Manager MMC tool, and expand 'Web Sites'
Right-click 'Default Web Site' or the application in question, and select
'Properties'
On the 'Home Directory' tab, click the 'Configuration. ..' button
On the 'Options' tab, make sure 'Enable session state' is checked and that
the timeout value (in minutes) is sufficient.
Also, try removing and re-creating the application in the Internet Services
Manager MMC tool. this often fixes problems like this.
--
John Blessing http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web. http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
"qaz" <ng****@uslex.n et> wrote in message
news:ei******** ******@TK2MSFTN GP15.phx.gbl... My evidence is pretty good. In Application_OnS tart I created an application variable named Application("te st") and set it equal to "Applicatio n". In Session_OnStart I set a session variable called session("test") = "Session". I put response.write statements in test.asp and fired the page.
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Well, what evidence do you have thatit is not firing? What method is the "not firing" occuring in? What is the code in that method?
Have you seen http://www.aspfaq.com/2076 and http://www.aspfaq.com/2078 ?
-- http://www.aspfaq.com/ (Reverse address to reply.)
"qaz" <ng****@uslex.n et> wrote in message news:eX******** ******@TK2MSFTN GP11.phx.gbl... > For some reason my global.asa file is not firing. I have it located in the > root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have the web > site configured as an "applicatio n" in IIS. When I modified the file I also > stopped and restarted the web server. > > Can anyone give me some ideas as to why it is not firing? > > Thanks > >
John Blessing wrote on 23 jan 2005 in
microsoft.publi c.inetserver.as p.general: Make sure session cookies are enabled in your browser - Tools, Internet Options, Privacy, Advanced, check the box "Always allow session cookies"
This has nothing to do with:
response.write application("st arted")
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
Sorry, I don't know what you are talking about. What is
application("st arted")?
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ***********@194 .109.133.29... John Blessing wrote on 23 jan 2005 in microsoft.publi c.inetserver.as p.general:
Make sure session cookies are enabled in your browser - Tools, Internet Options, Privacy, Advanced, check the box "Always allow session cookies"
This has nothing to do with:
response.write application("st arted")
-- Evertjan. The Netherlands. (Replace all crosses with dots in my emailaddress)
Very helpful response - unfortunately I still have the problem. Session
cookies are enabled in the browser (I use them successfully on other pages);
I have no "funny" characters in the local server name; Session State is
enabled in internet services manager and timeout is 20 min; I deleted the
website in IIS (v6) and recreated it. Ugh! It still does not fire
global.asa.
Below is a complete copy of my global.asa file, if that would help:
<SCRIPT LANGUAGE=VBScri pt RUNAT=Server>
'============== =============== =============== =============== ============
Sub Application_OnS tart
Application.Loc k
Application("Cu rrentUsers") = 0
Application("te st") = "Applicatio n"
Application.Unl ock
End Sub
'============== =============== =============== =============== ============
Sub Session_OnStart
Application("Cu rrentUsers") = Application("Cu rrentUsers") + 1
session("test") = "Session"
session("IDUser ") = 0
'--- force all users to begin on home page ---
response.redire ct "default.as p"
End Sub
'============== =============== =============== =============== =============== =
====
Sub Session_OnEnd
Application("Cu rrentUsers") = Application("Cu rrentUsers") - 1
End Sub
'============== =============== =============== =============== =============== =
====
Sub Application_OnE nd
End Sub
</SCRIPT>
"John Blessing" <ne*******@LbeH elpdesk.com> wrote in message
news:35******** *****@individua l.net... Make sure session cookies are enabled in your browser - Tools, Internet Options, Privacy, Advanced, check the box "Always allow session cookies"
If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly. One workaround is to access
the machine by IP address; others include renaming the server or at least
adding an entry to the clients' hosts files, or alter your local DNS/WINS, or add
a new host header to the web server, with a more friendly name. For more
info, search http://msdn.microsoft.com/ for Q312461 and Q316112.
Make sure you haven't disabled session state in Internet Services Manager, and that it has an appropriate timeout value: Open the Internet Services Manager MMC tool, and expand 'Web Sites' Right-click 'Default Web Site' or the application in question, and select 'Properties' On the 'Home Directory' tab, click the 'Configuration. ..' button On the 'Options' tab, make sure 'Enable session state' is checked and that the timeout value (in minutes) is sufficient.
Also, try removing and re-creating the application in the Internet
Services Manager MMC tool. this often fixes problems like this. -- John Blessing
http://www.LbeHelpdesk.com - Help Desk software priced to suit all businesses http://www.room-booking-software.com - Schedule rooms & equipment bookings for your meeting/class over the web. http://www.lbetoolbox.com - Remove Duplicates from MS Outlook "qaz" <ng****@uslex.n et> wrote in message news:ei******** ******@TK2MSFTN GP15.phx.gbl... My evidence is pretty good. In Application_OnS tart I created an application variable named Application("te st") and set it equal to "Applicatio n".
In Session_OnStart I set a session variable called session("test") = "Session". I put response.write statements in test.asp and fired the page.
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. Well, what evidence do you have thatit is not firing? What method is
the "not firing" occuring in? What is the code in that method?
Have you seen http://www.aspfaq.com/2076 and http://www.aspfaq.com/2078
? -- http://www.aspfaq.com/ (Reverse address to reply.)
"qaz" <ng****@uslex.n et> wrote in message news:eX******** ******@TK2MSFTN GP11.phx.gbl... > For some reason my global.asa file is not firing. I have it located
in the > root of my website (e.g., wwwroot\mywebsi te\global.asa) and I have
the web > site configured as an "applicatio n" in IIS. When I modified the file
I also > stopped and restarted the web server. > > Can anyone give me some ideas as to why it is not firing? > > Thanks > >
Wow, this content looks familiar. If you're going to post others' content
as if it were your own, you would show much more respect if you either cite
the source, or take the time to put it into your own words. http://www.aspfaq.com/2157
-- http://www.aspfaq.com/
(Reverse address to reply.)
"John Blessing" <ne*******@LbeH elpdesk.com> wrote in message
news:35******** *****@individua l.net... Make sure session cookies are enabled in your browser - Tools, Internet Options, Privacy, Advanced, check the box "Always allow session cookies"
If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly. One workaround is to access
the machine by IP address; others include renaming the server or at least
adding an entry to the clients' hosts files, or alter your local DNS/WINS, or add
a new host header to the web server, with a more friendly name. For more
info, search http://msdn.microsoft.com/ for Q312461 and Q316112.
Make sure you haven't disabled session state in Internet Services Manager, and that it has an appropriate timeout value: Open the Internet Services Manager MMC tool, and expand 'Web Sites' Right-click 'Default Web Site' or the application in question, and select 'Properties' On the 'Home Directory' tab, click the 'Configuration. ..' button On the 'Options' tab, make sure 'Enable session state' is checked and that the timeout value (in minutes) is sufficient.
Also, try removing and re-creating the application in the Internet
Services Manager MMC tool. this often fixes problems like this.
Hi
My apologies, I have bunch of faq stuff in a macro file, I hadn't realised
it came from aspfaq originally. . Sometimes the users I deal with don't
have internet access and so it is best to give them the answer directly.
--
John Blessing
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:e$******** ********@TK2MSF TNGP14.phx.gbl. .. Wow, this content looks familiar. If you're going to post others' content as if it were your own, you would show much more respect if you either cite the source, or take the time to put it into your own words.
http://www.aspfaq.com/2157
-- http://www.aspfaq.com/ (Reverse address to reply.)
"John Blessing" <ne*******@LbeH elpdesk.com> wrote in message news:35******** *****@individua l.net... Make sure session cookies are enabled in your browser - Tools, Internet Options, Privacy, Advanced, check the box "Always allow session cookies"
If you are using IE 5.5 or IE 6.0, and your local server name has an underscore or other non-alphanumeric character (other than a dash) in the name, then cookies will not work correctly. One workaround is to access
the machine by IP address; others include renaming the server or at least adding an entry to the clients' hosts files, or alter your local DNS/WINS, or add a new host header to the web server, with a more friendly name. For more info, search http://msdn.microsoft.com/ for Q312461 and Q316112.
Make sure you haven't disabled session state in Internet Services Manager, and that it has an appropriate timeout value: Open the Internet Services Manager MMC tool, and expand 'Web Sites' Right-click 'Default Web Site' or the application in question, and select 'Properties' On the 'Home Directory' tab, click the 'Configuration. ..' button On the 'Options' tab, make sure 'Enable session state' is checked and that the timeout value (in minutes) is sufficient.
Also, try removing and re-creating the application in the Internet Services Manager MMC tool. this often fixes problems like this.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve Mauldin |
last post by:
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.
But if I set a session variable session("accountid") =...
|
by: Kenny Ashton |
last post by:
Hello gurus
Can I ask you opions on the best compromise for storing Access
Ado connection strings in a IIS4 standard ASP environment.
For any method I use, there seems to be an article somewhere
that says 'never' do this, or that.
1. I have 3 site folders s1, s2, s2 and a common DB folder outside
the site roots.
/sites/s1
/sites/s2
|
by: bloodhound |
last post by:
Hi,
Problem with global.asa not firing 100% of the time. This error crops
up several times throughout the day but if you wait a while and reload
the page (could be 5 mins or an hour) it will suddenly start working
again.
The error is:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
|
by: Max |
last post by:
I've noticed some procedures don't run in the global.asax when you'd expect
them to. I've rebuilt and set break points, but Application_Start just isn't
firing today. Is there some configuration that prevents this from happening?
I've never gotten Session_End to fire either.
-M
|
by: Mark |
last post by:
There appear to be several ways to get the global error handler in
global.asax.cs to fire repeatedly in a nasty endless loop. Is there a way
to keep this event from firing only a handful of times over the course of a
minute, so that if it's obviously caught in a vicious loop, it will stop?
In our global error handler, we send an email...
| |
by: Rick Hein |
last post by:
I've got a problem with an app I've been working on, the Caching object and
events not firing correctly. In a nutshell: When I'm debugging, and I set a
breakpoint in the removed item call back, the code works correctly. If there
is no debugger it doesn't fire, which causes the app to have problems.
Here's what the code does: The...
|
by: furiousmojo |
last post by:
This is a strange problem. I have a project where the contents of
global.asax application_error are not firing. It is an asp.net 2.0
application using web application projects. I have another app using
web application projects and it's firing fine but it was upgraded from
the 1.1 framework.
Why doesn't my global.asax application_error...
|
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 Global.asax file doesn't get
published. If I manually copy it the event doesn't seem to get called.
Any idea what's going on here?
Thanks,
|
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...
|
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...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
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...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |