|
 |
asp_components thread: RES: ASP Intrinsic Objects --->>> COM+
Message #1 by =?iso-8859-1?Q?Fl=E1vio_Rodrigues_Maciel?= <flaviorm@p...> on Thu, 25 Jul 2002 15:39:33 -0300
|
|
Well, I don't know much about the Context Object, but the error says that
objContext("Response") isn't or doesn't return a object that you are trying
to set to objResponse.
-----Mensagem original-----
De: jose.aris@i... [mailto:jose.aris@i...]
Enviada em: quinta-feira, 25 de julho de 2002 12:17
Para: ASP components
Assunto: [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%%
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
Message #2 by "Jose Luis Aris Zlatar" <jose.aris@i...> on Fri, 26 Jul 2002 20:06:43
|
|
Hi
I think that's the problem, but why??, if I follow the example, create all
the object, and have the necesary references, the code should work. I am
learning now, how to create this kind of interaction between ASP and COM+,
and it's really necesary to have a hide interface, where the COM+ can work
with all the intrinsic ASP Objects, like Respose, Request, Session,
Application and any others. I know, that I can pass this values in the
function call in the ASP code, but it doesn't resolve the problem. If
someone execute that example and make it work, please tell me how, if
there are some especific configuration, changes in the code???
Thank's
Jose Luis Aris Zlatar
> Well, I don't know much about the Context Object, but the error says that
objContext("Response") isn't or doesn't return a object that you are trying
to set to objResponse.
-----Mensagem original-----
De: jose.aris@i... [mailto:jose.aris@i...]
Enviada em: quinta-feira, 25 de julho de 2002 12:17
Para: ASP components
Assunto: [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%%
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
Message #3 by "Jose Luis Aris Zlatar" <jose.aris@i...> on Wed, 31 Jul 2002 03:36:34
|
|
Well it's seems like the objContext Object doesn't work, someone know how
can I debug the objContext object. Because if I debug this in VB, it is
empty or don't have any values.
Thanks
Jose Luis Aris Z
> Well, I don't know much about the Context Object, but the error says that
objContext("Response") isn't or doesn't return a object that you are trying
to set to objResponse.
-----Mensagem original-----
De: jose.aris@i... [mailto:jose.aris@i...]
Enviada em: quinta-feira, 25 de julho de 2002 12:17
Para: ASP components
Assunto: [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%%
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.377 / Virus Database: 211 - Release Date: 15/7/2002
|
|
 |