I am trying to reference an object in the
application.staticobjects collection from my VB component,
but I am unable to reference the object even though the
staticobjects count shows that something is there.
Ex. in the global.asa I have:
<OBJECT RUNAT="SERVER" ID="SITEMETASTORE"
PROGID="MSXML2.FreeThreadedDOMDocument"
SCOPE="APPLICATION"></OBJECT>
In my vb component I have:
Dim oXMLDoc As MSXML2.FreeThreadedDOMDocument
Dim oContext As ObjectContext
Dim oApp As ASPTypeLibrary.Application
Set oContext = GetObjectContext()
Set oApp = oContext("Application"
Set oXMLDoc = oApp.StaticObjects("SITEMETASTORE"
When attempting to set the oXMLDoc object to the static object ("SITEMETASTORE" I receive an "Object required" error message. When I check the key (oapp.StaticObjects.Key(1)) it returns the value "SITEMETASTORE", and the
StaticObjects.Count returns 1. Is it not possible to
reference a static object in your VB component.
Does anyone have some insite into this? Any help is
appreciated.
Info: VB6, ASP, IIS5, Windows 2000 Server
Thx.
application.staticobjects collection from my VB component,
but I am unable to reference the object even though the
staticobjects count shows that something is there.
Ex. in the global.asa I have:
<OBJECT RUNAT="SERVER" ID="SITEMETASTORE"
PROGID="MSXML2.FreeThreadedDOMDocument"
SCOPE="APPLICATION"></OBJECT>
In my vb component I have:
Dim oXMLDoc As MSXML2.FreeThreadedDOMDocument
Dim oContext As ObjectContext
Dim oApp As ASPTypeLibrary.Application
Set oContext = GetObjectContext()
Set oApp = oContext("Application"
Set oXMLDoc = oApp.StaticObjects("SITEMETASTORE"
When attempting to set the oXMLDoc object to the static object ("SITEMETASTORE" I receive an "Object required" error message. When I check the key (oapp.StaticObjects.Key(1)) it returns the value "SITEMETASTORE", and the
StaticObjects.Count returns 1. Is it not possible to
reference a static object in your VB component.
Does anyone have some insite into this? Any help is
appreciated.
Info: VB6, ASP, IIS5, Windows 2000 Server
Thx.