title: Why am I getting "no overload for method takes two arguments"?
body: <p>I have a method in one DLL:</p>
  
  <pre><code>public static DataSet ExecuteDataset(string strcommandText,CommandType commandType,SqlParameter[] p)
   {
     CreateConnection();
     da = new SqlDataAdapter(strcommandText, con);
     da.SelectCommand.CommandType = commandType;
     da.SelectCommand.Parameters.AddRange(p);
     ds = new DataSet();
     da.Fill(ds);
     return ds;
   }    
  </code></pre>
  
  <p>And I have written a method in another DLL:</p>
  
  <pre><code>   public static DataSet GetDeptDetails()
      {
      string strcommandText = "sp_DeptDetails";
      return SqlHelper.ExecuteDataset(strcommandText,CommandType.StoredProcedure);
       }
  </code></pre>
  
  <p>Here, I'm getting this error:</p>
  
  <blockquote>
    <p>no overload for method takes two arguments.</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>