title: An exception of type 'Oracle.DataAccess.Client.OracleException' occurred in Oracle.DataAccess.dll but was not handled in user code
body: <p>Can anybody tell me what am I doing wrong here? I am facing <strong><code>Oracle.DataAccess.Client.OracleException</code> exception</strong> and when I clicked to view details I saw </p>
  
  <blockquote>
    <p>ORA-06550: line 1, column 7: PLS-00306: wrong number or types of
    arguments in call to 'PRC_ABCD_GETALL' ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored</p>
  </blockquote>
  
  <p>I have a store procedure like this</p>
  
  <pre><code>PROCEDURE PRC_ABCD_GETALL (resultset_out OUT TYPES.cursorType)
  AS
  BEGIN
  OPEN 
  resultset_out FOR SELECT * FROM ABCD;
  END PRC_ABCD_GETALL;
  </code></pre>
  
  <p>And my C# code is like this</p>
  
  <pre><code>using (OracleConnection conn = new OracleConnection(cnn))
  {
      conn.Open();
      OracleCommand cmd = new OracleCommand();
      cmd.Connection = conn;
      cmd.CommandText = "PRC_ABCD_GETALL";
      cmd.CommandType = CommandType.StoredProcedure;
      cmd.Parameters.Add("resultset_out", OracleDbType.RefCursor, 
      ParameterDirection.Output);
      OracleDataReader rdr = cmd.ExecuteReader();              
      while (rdr.Read())
      {
          result.Add(Construct(rdr));
      }
  }
  </code></pre>