Click to See Complete Forum and Search --> : ASP-problems. Urgent!!!


Pulp
July 26th, 2000, 08:47 AM
Hi all!!

I posted this question in the ASP-discussion group, but just in case someone "in here" has encountered this problem I entered it here as well:

I'm running IIS on a Nt-server, but are having some difficulties with displaying the web-sites.

I have created a directory called "test" (under wwwroot) and added two files to it, Global.asa and Hi.asp.
What happens is that the response-object (if you can can call it an object..) works fine in the asp-page.
It also works fine in the Session_OnStart -procedure in Global.asa. BUT if I place a response-call in the Application_OnStart -procedure, it fails!!!

It doesn't matter if it's a response.write, or response.redirect, the error pops up anyway.

The error number is: 8002802b
I found an article about the error on:

http://support.microsoft.com/support/kb/articles/Q199/9/65.ASP?LN=EN-US&SD=g
n&FR=0

...but that didn't solve the problem either.

Could anyone please help me out here???

Thanx
Pulp

Johnny101
July 26th, 2000, 10:48 AM
I replied to your post in the ASP forum, but i just thought of something else...

My guess for why it works in the Session event and not the application is the at the time the application _onstart event fires, only the application and server objects have been instanciated. and i think once the session_onstart event fires, that's when the other objects are created - session, response and request.

just a thought,

John

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org

Sangeet
July 28th, 2000, 08:37 PM
Hey man
REsponse, Request , or session objects are created when the session in started

So therefore any call to these objects before session is started returns an
error.