title: Application intent = readonly SQL Server connection error
body: <p>I want to connect to an availability group (listener ip) including 4 different database servers. In my connection string, I specify </p>
  
  <pre><code>application intent = readonly
  </code></pre>
  
  <p>attribute to connect as read-only. But it fails with a </p>
  
  <blockquote>
    <p>database connection error</p>
  </blockquote>
  
  <p>There are two different cases:</p>
  
  <ul>
  <li><p>when I use a database ip instead of listener ip, I can connect to the database</p></li>
  <li><p>when I remove <code>application intent = readonly</code>, I can connect to the database</p></li>
  </ul>
  
  <p>Who can help me?</p>