title: Web.Config: Connection String with Application name
body: <p>I am really struggling to get this to work. I have a connection string and I want to add the application name with an NpgSql provider. According <a href="https://stackoverflow.com/questions/24046578/how-to-specify-applicationname-in-npgsql-connection-string">to this SO post</a> I should use <code>ApplicationName</code>, and according to the <a href="http://www.postgresql.org/docs/9.0/static/libpq-connect.html" rel="nofollow noreferrer">PostgreSQL docs</a> I should use <code>application_name</code>. The problem I an having is that neither of those work for me. </p>
  
  <p>Connection String:</p>
  
  <pre><code>&lt;add name="Site" connectionString="Server=******;Port=******;Database==******;User Id==******;Password==******;SearchPath==******;ApplicationName=test" providerName="NpgSql"/&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>key=value argument incorrect in ConnectionString
  Parameter name: applicationname
  </code></pre>
  
  <p>Connection String:</p>
  
  <pre><code>&lt;add name="Site" connectionString="Server=******;Port=******;Database==******;User Id==******;Password==******;SearchPath==******;application_name=test" providerName="NpgSql"/&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>key=value argument incorrect in ConnectionString
  Parameter name: application_name
  </code></pre>