ObjectContext object error 
Author Message
 ObjectContext object error

I am attempting to instantiate the ObjectContext object within my VB6
component so that I can use the URLEncode method of the intrinsic ASP
Server object.

I have referenced the COM+ Services Type Library and the Microsoft
Active
Server Pages Object Library (Asp.dll). I'm on Win2K.

Still, when I attempt the following code, I get an "Object variable or
With block variable not set" error on the line where I Set objServer =
objContext("Server"):

    Dim objContext As ObjectContext
    Dim objServer As Server
    Set objContext = GetObjectContext()
    Set objServer = objContext("Server")

    strHtmlBody = objServer.HTMLEncode(strHtmlBody)

Anybody know why?
--Chris



Mon, 08 Aug 2005 03:30:18 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ObjectContext vs. Passing ASP objects from ASP page

2. ObjectContext vs Passing ASP object to DLL

3. Can′t create ObjectContext object - why?

4. ObjectContext In ActiveX-DLL and WinXP: Error 91

5. On Error in the ObjectContext

6. objectcontext make dll error

7. objectcontext and repsonse.flush

8. MTS ObjectContext

9. ObjectContext

10. Using ObjectContext

11. ObjectContext Cannot Be Created?

12. Sending ObjectContext ByRef to other components...

 

 
Powered by phpBB® Forum Software