title: Running Oracle Stored Procedure from C# Error
body: <p>I am new to oracle. I created a stored procedure to fetch table data.</p>
  
  <pre><code>create or replace
  procedure GETLATESTNEWS(cv_results in out sys_refcursor)
  as
  begin
  open cv_results for
  select news from tbl_newsdetails;
  EXCEPTION
   WHEN OTHERS THEN
    ROLLBACK;
    RAISE_APPLICATION_ERROR(-99999,'Not Inserted due to :'||SQLERRM);  
  end;
  </code></pre>
  
  <p>The procedure got compiled successfully. But in my .net code I am getting error</p>
  
  <pre><code>ORA-06550: line 1, column 7:
  PLS-00306: wrong number or types of arguments in call to 'GETLATESTNEWS'
  ORA-06550: line 1, column 7:
  PL/SQL: Statement ignored
  </code></pre>
  
  <p>My .net code is</p>
  
  <pre><code>con.ConnectionString = constring;
  con.Open();
  OracleCommand cmd = new OracleCommand();
  cmd.Connection = con;
  cmd.CommandText = "GETLATESTNEWS";
  cmd.CommandType = CommandType.StoredProcedure;
  rdr = cmd.ExecuteReader();
  </code></pre>
  
  <p>What might be the issue?. I am able to insert with insert stored procedure. But select is not working. </p>