Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

(0x8002802B) Element not found

Question posted by: =?Utf-8?B?TXIuIFNtYXJ0?= (Guest) on July 23rd, 2008 01:25 PM
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?
Bob Barrows [MVP]'s Avatar
Bob Barrows [MVP]
Guest
n/a Posts
July 23rd, 2008
01:55 PM
#2

Re: (0x8002802B) Element not found
Mr. Smart wrote:
Quote:
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/genera...a-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.



Daniel Crichton's Avatar
Daniel Crichton
Guest
n/a Posts
July 23rd, 2008
03:05 PM
#3

Re: (0x8002802B) Element not found
Mr. wrote on Wed, 23 Jul 2008 06:22:04 -0700:
Quote:
Error Type:
(0x8002802B)
Element not found.
//global.asa, line 28


Quote:
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



Jeff Dillon's Avatar
Jeff Dillon
Guest
n/a Posts
July 23rd, 2008
06:15 PM
#4

Re: (0x8002802B) Element not found
"Mr. Smart" <MrSmart@discussions.microsoft.comwrote in message
news:FBDEC61B-BAAB-4087-8561-E5BB104BC6F6@microsoft.com...
Quote:
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.



Daniel Crichton's Avatar
Daniel Crichton
Guest
n/a Posts
July 24th, 2008
08:15 AM
#5

Re: (0x8002802B) Element not found
I've cut out most of the previous post to keep this short and to the point.
Quote:
'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

Quote:
</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



=?Utf-8?B?TXIuIFNtYXJ0?='s Avatar
=?Utf-8?B?TXIuIFNtYXJ0?=
Guest
n/a Posts
July 24th, 2008
09:55 AM
#6

Re: (0x8002802B) Element not found
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:
Quote:
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?


Daniel Crichton's Avatar
Daniel Crichton
Guest
n/a Posts
July 24th, 2008
10:35 AM
#7

Re: (0x8002802B) Element not found
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:
Quote:
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.

Quote:
"Mr. Smart" wrote:

Quote:
Quote:
>Error Type:
>(0x8002802B)
>Element not found.
>//global.asa, line 28


Quote:
Quote:
>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):

Quote:
Quote:
>...

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

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

Quote:
Quote:
>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

Quote:
Quote:
>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

Quote:
Quote:
>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?




 
Not the answer you were looking for? Post your question . . .
189,169 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors