CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2000
    Location
    Norway
    Posts
    19

    ASP-problems. Urgent!!!

    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...?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



  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: ASP-problems. Urgent!!!

    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
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Jul 2000
    Posts
    2

    Re: ASP-problems. Urgent!!!

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured