|
|
|
|
|
| | |
| |
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
OBJECT in global.asa not instantiated |
|
From: |
Gail Papke |
|
Date: |
10/12/1999 12:21:42 PM |
|
IP: |
207.229.149.223 |
I have a problem that objects declared using the <OBJECT> tag in global.asa are not being instantiated. I know that the correct global.asa is running because I have other code in an Application_OnStart procedure that does run. However, when I refer to a declared object in an .ASP file, I get the error "Object required: MyBrowser".
Here is the global.asa:
<OBJECT RUNAT=Server SCOPE=Application ID=oAdmn2000 PROGID="Admn2000.ScsTools">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Application ID=myBrowser PROGID="MSWC.BrowserType">
</OBJECT>
<SCRIPT Language=VBSCRIPT RUNAT=Server>
Sub Application_OnStart()
set ifile=Server.CreateObject("Scripting.FileSystemObject")
set file=ifile.OpenTextFile("admncoun.txt",1,TRUE)
lcCount=file.ReadLine
if lcCount<>"" then
application("Count")=CInt(lcCount)
else
application("Count")=0
end if
file.Close
set ifile= nothing
set file = nothing
End Sub
</SCRIPT>
Here is the ASP code to use an object, which generates the "Object required" error:
browser is <%=myBrowser.browser%>
I know the global.asa runs because the admncoun.txt file gets created. Any clues as to why I cant refer to the objects?
Gail Papke
Second City Software |
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|