Output parameter sybase C#
Hi
I have a Sybase stored procedure with an output type char parameter (Also it has one Input parameter).
When I try to get the value's parameter I get an NullReferenceException, Object reference not set to an instance.
I debug my web application it shows:
'((Sybase.Data.AseClient.AseParameter)((new System.Collections.ArrayList.ArrayListDebugView(_o Comando.Parameters)).Items[1])).Value' threw an exception of type 'System.NullReferenceException'
My code of this parameters is
AseParameter oParameter = new AseParameter("@outParameter", AseDbType.Char, 10);
oParameter.Direction = ParameterDirection.Output;
_oComando.Parameters.Add(oParameter);
What's wrong?
Regards
|