I have created a COM component that runs under MTS. It has a function that accepts an array as a parameter.
When I try to call that function from ASP I get an error:
Err.Number = 13
Err.Description: Type mismatch
Err.Source: VB Script runtime

The code that I use in ASP is:

<%@ Language=VBScript %>
<%

Dim str, obj, retval

str = "Some String"

dim ar(1,2)
ar(0,0) = "String1"
ar(0,1) = "String2"
ar(0,2) = "String3"

ar(1,0) = "String4"
ar(1,1) = "String5"
ar(1,2) = "String6"


set obj = Server.CreateObject("CompLib.Class1")

retval = obj.FuncName(ar,str)

%>

All the datatypes of parameters defined in COM are Variant

I would be very grateful if sb. can give me any suggestion.