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

(0x8002802B) Element not found

Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
The above is what I always get when I tried to log on to my website. I am
still developing it using localhost. So the very first time I typed
http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):

....

StartPage = "http://" & Request.ServerVariables("SERVER_NAME") &
"/Default.asp"
Session("referer") = Request.ServerVariables("HTTP_REFERER")
currentPage = "http://" & Request.ServerVariables("SERVER_NAME") &
Request.ServerVariables("SCRIPT_NAME")
....

Even if I comment the Startpage = ..., and I re-start the app, it jumps to
the next line.

Here is what I am trying to do. I want to be able to monitor how many people
logged on to my website at any momemt. Also I want to make sure users logged
in and monitor where they are coming from. So, I have the above lines. Down
below, I have the following lines

if strcomp(currentPage,startPage,1) then
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
Response.Redirect(startPage)
else
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
end if

If they did not come in thru the start page Default.asp, it pushes the user
to default.asp, else it increases nofusers. However, as I indicated above, it
gives the error above. However, if I click on Refresh, it works correctly.
Any ideas?
Jul 23 '08 #1
6 3363
Mr. Smart wrote:
Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
The above is what I always get when I tried to log on to my website.
I am still developing it using localhost. So the very first time I
typed http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):

...

StartPage = "http://" & Request.ServerVariables("SERVER_NAME") &
"/Default.asp"
Session("referer") = Request.ServerVariables("HTTP_REFERER")
currentPage = "http://" & Request.ServerVariables("SERVER_NAME") &
Request.ServerVariables("SCRIPT_NAME")
...
Does any of this apply?
http://classicasp.aspfaq.com/general...-not-fire.html
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 23 '08 #2
Mr. wrote on Wed, 23 Jul 2008 06:22:04 -0700:
Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
The above is what I always get when I tried to log on to my website. I
am still developing it using localhost. So the very first time I typed
http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):
Rather than posting snippets, can you post the entire global.asa file in
case there's something else that is causing the problem, and also point out
which is line 28 (I'm assuming it's the "StartPage = ..." line, but you
didn't clearly state that? According to http://support.microsoft.com/kb/275519
you should only get this error if trying to use the Request object in the
Application events, not in the Session events, which is why it's worth
posting the complete unedited global.asa content in case there's a typo
somewhere else.

--
Dan
Jul 23 '08 #3
"Mr. Smart" <Mr*****@discussions.microsoft.comwrote in message
news:FB**********************************@microsof t.com...
Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
The above is what I always get when I tried to log on to my website. I am
still developing it using localhost. So the very first time I typed
http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):

...

StartPage = "http://" & Request.ServerVariables("SERVER_NAME") &
"/Default.asp"
Session("referer") = Request.ServerVariables("HTTP_REFERER")
currentPage = "http://" & Request.ServerVariables("SERVER_NAME") &
Request.ServerVariables("SCRIPT_NAME")
...

Even if I comment the Startpage = ..., and I re-start the app, it jumps to
the next line.

Here is what I am trying to do. I want to be able to monitor how many
people
logged on to my website at any momemt. Also I want to make sure users
logged
in and monitor where they are coming from. So, I have the above lines.
Down
below, I have the following lines

if strcomp(currentPage,startPage,1) then
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
Response.Redirect(startPage)
else
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
end if

If they did not come in thru the start page Default.asp, it pushes the
user
to default.asp, else it increases nofusers. However, as I indicated above,
it
gives the error above. However, if I click on Refresh, it works correctly.
Any ideas?
What is on line 28? What element is not being found? Easy to test by
commenting out appropriate lines of code.
Jul 23 '08 #4
I've cut out most of the previous post to keep this short and to the point.
'EventName Description
Session_OnStart 'Runs the first time a user runs any page in
your
application
Session_OnEnd 'Runs when a user's session times out or quits
your
application
Application_OnStart 'Runs once when the first page of your
application is
run for the first time by any user
'Application_OnEnd 'Runs once when the web server shuts down
</SCRIPT>

Is the above verbatim from your global.asa? Do you actually have those lines
in it? If so, does it cure the problem if you remove them? All the lines
that don't start with ' will be treated as code to run, and outside of the
defined events I can only assume that what is happening is they are being
treated as part of the application start up, in which case it's firing
Session_OnStart outside of a session which makes the Request object invalid
and would give you that error.

--
Dan
Jul 24 '08 #5
Thanks very much to all of you out there who have contributed. You are
marvellous - Bob Barrows, Dan Critcton and Jeff Dillion. Thanks. Where I got
it wrong was the codes outside Script /Script. I thought that to call the 4
procedures, I would have to call them each one at a time. That was why I did
not comment out ApplicationStart, SessionStart and SessionEnd as Mr. Daniel
Cricton pointed out. Merely commenting those lines out solved the problem.
Once again, thanks.

"Mr. Smart" wrote:
Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
The above is what I always get when I tried to log on to my website. I am
still developing it using localhost. So the very first time I typed
http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):

...

StartPage = "http://" & Request.ServerVariables("SERVER_NAME") &
"/Default.asp"
Session("referer") = Request.ServerVariables("HTTP_REFERER")
currentPage = "http://" & Request.ServerVariables("SERVER_NAME") &
Request.ServerVariables("SCRIPT_NAME")
...

Even if I comment the Startpage = ..., and I re-start the app, it jumps to
the next line.

Here is what I am trying to do. I want to be able to monitor how many people
logged on to my website at any momemt. Also I want to make sure users logged
in and monitor where they are coming from. So, I have the above lines. Down
below, I have the following lines

if strcomp(currentPage,startPage,1) then
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
Response.Redirect(startPage)
else
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
end if

If they did not come in thru the start page Default.asp, it pushes the user
to default.asp, else it increases nofusers. However, as I indicated above, it
gives the error above. However, if I click on Refresh, it works correctly.
Any ideas?
Jul 24 '08 #6
Glad to hear that resolved it. It did look odd that you had those in there.

Global.asa can contain code that is run, as well as the event routines for
the Application and Session. You do not include calls to the event
routines - the ASP.DLL parser does this for you. Code outside of the event
routines is normally used to set constants and variables for use elsewhere
throughout the application which is why it is not ignored.

Dan

Mr. wrote on Thu, 24 Jul 2008 02:51:00 -0700:
Thanks very much to all of you out there who have contributed. You are
marvellous - Bob Barrows, Dan Critcton and Jeff Dillion. Thanks. Where
I got it wrong was the codes outside Script /Script. I thought that to
call the 4 procedures, I would have to call them each one at a time.
That was why I did not comment out ApplicationStart, SessionStart and
SessionEnd as Mr. Daniel
Cricton pointed out. Merely commenting those lines out solved the
problem.
Once again, thanks.
"Mr. Smart" wrote:
>Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28
>The above is what I always get when I tried to log on to my website.
I am still developing it using localhost. So the very first time I
typed http://localhost, it will give me the error above.
Here is what I i have in the file (Session_OnStart):
>...
>StartPage = "http://" & Request.ServerVariables("SERVER_NAME") &
"/Default.asp"
Session("referer") = Request.ServerVariables("HTTP_REFERER")
currentPage = "http://" & Request.ServerVariables("SERVER_NAME") &
Request.ServerVariables("SCRIPT_NAME")
...
>Even if I comment the Startpage = ..., and I re-start the app, it
jumps to the next line.
>Here is what I am trying to do. I want to be able to monitor how many
people logged on to my website at any momemt. Also I want to make
sure users logged in and monitor where they are coming from. So, I
have the above lines. Down below, I have the following lines
>if strcomp(currentPage,startPage,1) then
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock
Response.Redirect(startPage)
else
Application.Lock
Application("NofUsers") = Application("NofUsers") + 1
Application.UnLock end if
>If they did not come in thru the start page Default.asp, it pushes
the user to default.asp, else it increases nofusers. However, as I
indicated above, it gives the error above. However, if I click on
Refresh, it works correctly.
Any ideas?

Jul 24 '08 #7

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

Similar topics

3
by: Rutger Claes | last post by:
Code and problem are from PHP5: When I execute the following piece of code, the DomException is thrown with a message: Not Found Exception. I assume this means that the node I extracted from the...
6
by: Wole Ogunremi | last post by:
I guess this is a well asked question but it is tripping me up! I'm putting a forum together allowing xhtml markup content. I am validating against a schema but getting "Could not find schema...
7
by: William Payne | last post by:
(This post is related to "recent files menu"-post below. If I should have kept this in that thread, I apologise.) Hello, I have a function that adds a std::string to a std::vector. New entries are...
5
by: Patient Guy | last post by:
In my reading of the Strict and Transitional DTD for HTML 4.0, the table row (TR) elements are contained within table section elements: THEAD, TFOOT, and TBODY. The table section elements are...
3
by: Lukas | last post by:
title: xml to xml mapping: empty elements output although input element is not empty Why is is that when mapping from a XML schema to another XML schema, when drawing a default connection...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
38
by: ssg31415926 | last post by:
I need to compare two string arrays defined as string such that the two arrays are equal if the contents of the two are the same, where order doesn't matter and every element must be unique. ...
1
by: \A_Michigan_User\ | last post by:
I call this Javascript function with "GetEleNum(this)" passing it 1 of the elements of a text-box array. Is there a QUICK way to get the "element #"? I'm currently using this SLOW code. (It...
11
by: rh0dium | last post by:
Hi all, I have a simple list to which I want to append another tuple if element 0 is not found anywhere in the list. element = ('/smsc/chp/aztec/padlib/5VT.Cat', '/smsc/chp/aztec/padlib',...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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.