i m using autosproc, which uses reflection to dynamically gernerate
wrapper classes.
i m getting exception when i m going to create instance of that class
which implements the interface(it is dynamically generated class)

"
sprocFactory.CreateInstance(typeof(interfaceName),DBprovider.sqlserver)"

when i execute this statement then get the exception" INDEX WAS
OUTSIDE THE BOUND OF AN ARRAY"

even interface's method has parameters which exactly match the
storedprocedure's parameters.

NOTE:
1) i get this exception when procedure has more than one output
parameter, i meant to say that when method(signature only) in
interface which contains more than one by reference parameter(with ref
keyword for C#).
2) for zero or one parameter it doesnt throw an exception and
successfully returns the instance of that class.

plz any one can solve my problem!!!

RE: problem in using autosproc !!! by SteveR

SteveR
Sat Jun 02 03:38:01 CDT 2007

Hey Nuzi,

You have found a bug in the tool - contact me on the address below and I'll
email the fix to you (replace [no_spam_please_at] with @):

steve_j_rodgers [no_spam_please_at] yahoo.com

Steve

"Nuzi" wrote:

> i m using autosproc, which uses reflection to dynamically gernerate
> wrapper classes.
> i m getting exception when i m going to create instance of that class
> which implements the interface(it is dynamically generated class)
>
> "
> sprocFactory.CreateInstance(typeof(interfaceName),DBprovider.sqlserver)"
>
> when i execute this statement then get the exception" INDEX WAS
> OUTSIDE THE BOUND OF AN ARRAY"
>
> even interface's method has parameters which exactly match the
> storedprocedure's parameters.
>
> NOTE:
> 1) i get this exception when procedure has more than one output
> parameter, i meant to say that when method(signature only) in
> interface which contains more than one by reference parameter(with ref
> keyword for C#).
> 2) for zero or one parameter it doesnt throw an exception and
> successfully returns the instance of that class.
>
> plz any one can solve my problem!!!
>
>