Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have an asp page, from which I have to call a function wich is written c# (managed code)which is registered by regasm. It is working fine. Now my requirement is passing an ADODB.Recordset function (C#.net)from asp page. like:

VB
Set class1=CreateObject("namespace1.class1")
Result=class1.function1(str,rsSet).

where rsSet is the ADODB.Recordset and str is a simple string.

And the signature of the C# function is
Public object[] function1(string value,ADODB.Recordset rsSet)

But at the time of calling the function from asp it gives the error:
vbscript runtime error:invalid procedure call or argument

Is there any other way to pass he complex objects from COM component like ASP to managed code.

Any clue how to fix it.

Thanks.
Posted
Comments
Member 11574476 7-Apr-15 0:05am    
Is there any marshalling required for this job?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900