title: Microsoft VBScript runtime error '800a0009' Subscript out of range: '[number: 1]' Include/Security.inc, line 28
body: <p>Im working in a migration project.</p>
  
  <p>Where im trying to migrate classic asp application. Im not good at Classic ASP.</p>
  
  <p>i had taken the code from the server and trying to run it in my machine. But getting the following error. </p>
  
  <blockquote>
    <p>Microsoft VBScript runtime  error '800a0009' </p>
    
    <p>Subscript out of range: '[number: 1]' </p>
    
    <p>/Include/Security.inc, line 28</p>
  </blockquote>
  
  <p>Please find the block of code where im getting the error.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Im getting the error in line 28 which is </p>
  
  <blockquote>
    <p>StringConvUN = tabConv(1)</p>
  </blockquote>
  
  <p>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.</p>