title: Sql Exception 0X80131904 Login failed for user ". The user is not associated with a trusted sql server connection
body: <p>I'm developing a windows application using c# .Net Framework 4.</p>
  
  <p>I have 2 machines; Test and production, connecting to a remote server which has the SQL Server here's my connection string:</p>
  
  <pre><code>&lt;add name="MealConnectionString" 
       connectionString="Server=MySQLServer;Database=MEALDB;User Id=Meal;Password=Meal1;Trusted_Connection=True;"
       providerName="System.Data.SqlClient" /&gt;`
  </code></pre>
  
  <p>When I run the program from the test machine there's no problem, but when I publish the program and run it from the production machine it gives the error mentioned in the title.</p>
  
  <p>When I remove the trusted connection it gives me a different error: Login failed for user "Meal"
  do you have any idea what could be the problem ??</p>
  
  <p><strong>Latest Update :
  I tried the sa Sqlaccount and removed the trusted connection and it worked , when i try the same for the user meal it doesn't work whereas the MEAL suer has the same privileges as the sa account</strong></p>