below is the code from line 524-550.
i am using aspnuke
If Application("adoConn_ConnectionString") = "" Then
' read the contents of the file
Set oFile = oFSO.OpenTextFile(oFSO.BuildPath(sPath, "global.asa"), 1)
sContents = oFile.ReadAll
oFile.Close
' find the connection string variable
Set oRegex = New RegExp
oRegex.Pattern = "asaConnectionString\s*=\s*""([^""]*)"""
oRegex.IgnoreCase = True
Set oMatches = oRegex.Execute(sContents)
Application.Lock
For Each oMatch In oMatches
Application("adoConn_ConnectionString") = oMatch.SubMatches(0)
Application("adoConn_CommandTimeout") = 1000
Application("adoConn_ConnectionTimeout") = 500
Next
' abort if the connection string could not be parsed
If Application("adoConn_ConnectionString") = "" Then
Response.Write "<P><B class=""error"">Unable to parse the
asaConnectionString value from: """ & sPath & "global.asa""...
ABORT!</B></P>"
Response.End
End If
Else
Application.Lock
End If
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Sen,
What is the relevant code in and around the area of line 538?
Ray at work
"Lynn" <Ma*******@yah00.c0m> wrote in message
news:eT****************@TK2MSFTNGP09.phx.gbl... Hi,
I installed asp nuke and got this error, any idea?
a.. Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'oMatch.SubMatches'
/aspnuke/lib/site_lib.asp, line 538
a.. Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.1.4322)
a.. Page:
GET /aspnuke/admin/configure.asp
a.. Time: