Tried this
Function myfunction()
Dim myArray(1)
myArray(0) = "1"
myArray(1) = "2"
myfunction = myArray
End Function
Dim newarray = myfunction()
And I get 500 error.
I'm using IIS7 with .NET runtime ASP.Net 2.0/3.0/3.5 On Godaddy's free economy hosting if that helps.