Im working in a migration project.
Where im trying to migrate classic asp application. Im not good at Classic ASP.
i had taken the code from the server and trying to run it in my machine. But getting the following error.
Microsoft VBScript runtime error '800a0009'
Subscript out of range: '[number: 1]'
/Include/Security.inc, line 28
Please find the block of code where im getting the error.
Function StringConvUN
dim tabConv
dim rmLocation
dim username
username = Ucase(Request.ServerVariables("LOGON_USER"))
if UCase(Request.ServerVariables("HTTP_AUTHORIZATION")) = "SITEMINDER" then
StringConvUN = username
else
tabConv = split(username, "'")
rmLocation = join(tabConv, "''")
tabConv = split(rmLocation , "\")
StringConvUN = tabConv(1)
end if
End Function
Im getting the error in line 28 which is
StringConvUN = tabConv(1)
The same code is running fine in the IIS 6 server. But in my machine and in new IIS 7.5 server it giving the above error. please help me on this.