title: SQL SERVER Named Pipes Provider, error: 40 only on EXE file
body: <p>SO 
  on my server i have sql server 2008 R2
  I have got 3 sites </p>
  
  <p>All of them works good and can connect to my db using the same connection string :</p>
  
  <pre><code> &lt;add name="myConnectionString" connectionString=
                                  "Data Source=(local);
                                  Initial Catalog=my_db;
                                  Persist Security Info=True;
                                  User ID=my_user;
                                  Password=mypass"
                                  providerName="System.Data.SqlClient"/&gt;
  </code></pre>
  
  <p>Problem is:</p>
  
  <p>I have another windows form applications that use the same connection string</p>
  
  <p>As the sites but for this iam getting </p>
  
  <blockquote>
    <p>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or
    was not accessible. Verify that the instance name is correct and that
    SQL Server is configured to allow remote connections. (provider: Named
    Pipes Provider, error: 40 - Could not open a connection to SQL Server)</p>
  </blockquote>
  
  <p>any ideas ?</p>