Debugging a VB .NET component which is being called from an ASP page
The VB method is of the form
Function Test(ByVal sStr As String, ByVal ParamArray s() As String) As String
Function Test(ByVal sStr As String, ByVal ParamArray s() As Object) As String
The ParamArray causes the error "Invalid procedure call or argument: 'cn.Test'"
I can and do invoke other methods on the same class before this, they work fine. When I make the second parameter an optional instead, it works fine. Only paramarray stops it working.
Here's the calling line on the ASP page
sTest = cn.Test("string1", "hello")
I've been stuck on this for hours.