asp error

L

Lynn

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:
 
R

Ray at

Sen,

This is some third party thing? You may want to see if they have a support
forum and try posting there as well. This isn't your code, I'm assuming.

Ray at work
 
L

Lynn

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
 
R

Ray at

Submatches requires VBS 5.5 or 5.6.
http://msdn.microsoft.com/library/en-us/script56/html/vtoriversioninformation.asp
Install the latest version of the Windows Scripting Host (5.6) from
http://msdn.microsoft.com/downloads/list/webdev.asp

Ray at home

Lynn said:
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 said:
Sen,

What is the relevant code in and around the area of line 538?

Ray at work
 
L

Lynn

how do i check the version of vbs i am running?

Ray at said:
Submatches requires VBS 5.5 or 5.6.
http://msdn.microsoft.com/library/en-us/script56/html/vtoriversioninformation.asp
Install the latest version of the Windows Scripting Host (5.6) from
http://msdn.microsoft.com/downloads/list/webdev.asp

Ray at home

Lynn said:
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 said:
Sen,

What is the relevant code in and around the area of line 538?

Ray at work

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:
 
R

Ray at

http://msdn.microsoft.com/library/en-us/script56/html/vsfctscriptenginebuildversion.asp
http://msdn.microsoft.com/library/en-us/script56/html/vsfctscriptenginemajorversion.asp
http://msdn.microsoft.com/library/en-us/script56/html/vsfctscriptengineminorversion.asp

Ray at home

Lynn said:
how do i check the version of vbs i am running?

Ray at said:
Submatches requires VBS 5.5 or 5.6.
http://msdn.microsoft.com/library/en-us/script56/html/vtoriversioninformation.asp
Install the latest version of the Windows Scripting Host (5.6) from
http://msdn.microsoft.com/downloads/list/webdev.asp

Ray at home

Lynn said:
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
Sen,

What is the relevant code in and around the area of line 538?

Ray at work

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top