An object supplied to VBArray was not a Visual Basic safeArray, when one was expected. Visual Basic safeArrays, which cannot be created directly in JScript, must be imported by retrieving the value from an existing ActiveX or other object or from a Visual Basic script on the same Web page.
To correct this error
Verify that only a Visual Basic safeArray object is passed to the VBArray constructor.
Use a System.Array object. This allows for any .NET language (including JScript and Visual Basic) to access and modify the array.