title: Exception in use ExecuteScalar
body: <p>I want to get a person from database in C# with ADO.net.</p>
  
  <p>I use this command:</p>
  
  <pre><code>System.Data.Common.DbCommand command = DatabaseManager.Database.GetStoredProcCommand(proc_name, firstName);
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>object personID = DatabaseManager.Database.ExecuteScalar(command);
  </code></pre>
  
  <p>When I click a button, these commands calls two times.</p>
  
  <p>In the first time it is OK. But the second time, I get <code>TimeOutException</code>:</p>
  
  <blockquote>
    <p>Timeout expired.  The timeout period elapsed prior to completion of
    the operation or the server is not responding.</p>
  </blockquote>
  
  <p>I used <code>command.Disposed();</code> and <code>command.Connection.Close();</code>. But these not resolve my problem.</p>
  
  <p>Please help me how I can resolve this problem.</p>