Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: ASP Intrinsic Objects --->>> COM+


Message #1 by jose.aris@i... on Thu, 25 Jul 2002 11:16:53 -0400 (CLT)
HI


My name is Jose Luis Aris, and in this moment I'm following de examples
to write code to COM+ components. In this examples I found some code to
make de referencing to the ASP Intrinsic Objects in the COM+ code, using
the Context Object. I write all the code in page 633-634 (Professional
Active Server Pages 3.0), and in line :
Set objResponse = objContext("Response")

Apears an error telling me that "Object Required", I cant
understand what it happening, I am not sure if the context object is
working good, and the referencing to ASP objects dont work.
My configuration is

Windows 2000 Professional
VB and Interdev 6.0

And de sub Code where the problems appears is

  Dim objContext As COMSVCSLib.ObjectContext
  Dim objResponse As ASPTypeLibrary.Response
  Dim PARAMETRO As AD_CON.BL_ACON
  Dim a As ASPTypeLibrary.Session
  Dim res
  Set PARAMETRO = CreateObject("AD_CON.BL_ACON")
  res = PARAMETRO.Obt_Parametros(strConn, CODIGO, EST, arTitles, Titulo)
  Set objContext = GetObjectContext
  Set objResponse = objContext("Response")

This last line have the problem,  The proyect in VB have references to
-COM+ Services Type Library
-Microsoft Active Server Pages Pbject Library
-Microsoft ActiveX Data Object 2.5 Library
-COM+ 1.0 Admin Type Library

Is there some restrictins that I dont know?
Thak's for your cooperation, I'll be waiting for your answer.


Thanks
-- 
José luis Aris Zlatar





Message #2 by "Adrian Forbes" <adrian.forbes@n...> on Fri, 26 Jul 2002 09:57:03 +0100
Try

objContext.Item("Response")

-----Original Message-----
From: jose.aris@i... [mailto:jose.aris@i...]
Sent: Thursday, July 25, 2002 4:17 PM
To: ASP components
Subject: [asp_components] ASP Intrinsic Objects --->>> COM+


HI


My name is Jose Luis Aris, and in this moment I'm following de examples
to write code to COM+ components. In this examples I found some code to
make de referencing to the ASP Intrinsic Objects in the COM+ code, using
the Context Object. I write all the code in page 633-634 (Professional
Active Server Pages 3.0), and in line :
Set objResponse = objContext("Response")

Apears an error telling me that "Object Required", I cant
understand what it happening, I am not sure if the context object is
working good, and the referencing to ASP objects dont work.
My configuration is

Windows 2000 Professional
VB and Interdev 6.0

And de sub Code where the problems appears is

  Dim objContext As COMSVCSLib.ObjectContext
  Dim objResponse As ASPTypeLibrary.Response
  Dim PARAMETRO As AD_CON.BL_ACON
  Dim a As ASPTypeLibrary.Session
  Dim res
  Set PARAMETRO = CreateObject("AD_CON.BL_ACON")
  res = PARAMETRO.Obt_Parametros(strConn, CODIGO, EST, arTitles, Titulo)
  Set objContext = GetObjectContext
  Set objResponse = objContext("Response")

This last line have the problem,  The proyect in VB have references to
-COM+ Services Type Library
-Microsoft Active Server Pages Pbject Library
-Microsoft ActiveX Data Object 2.5 Library
-COM+ 1.0 Admin Type Library

Is there some restrictins that I dont know?
Thak's for your cooperation, I'll be waiting for your answer.


Thanks
--
José luis Aris Zlatar







%%email.unsub%%



  Return to Index