title: Login failed for user "This operation requires a connection to the 'master' database
body: <p>Login failed for user <strong>and Its not just login</strong></p>
  
  <blockquote>
    <p>"This operation requires a connection to the 'master' database. Unable
    to create a connection to the 'master' database because the original
    database connection has been opened and credentials have been removed
    from the connection string. Supply an unopened connection.</p>
    
    <p>I've tried almost all the solutions that are available on web but nothing is helping me to get out of this problem.</p>
  </blockquote>
  
  <p>The <strong>code was working fine</strong> on my last machine. when I moved the code to the new machine its started giving me this issue. </p>
  
  <p>Given are my two connection strings </p>
  
  <pre><code>&lt;add name="MNew" connectionString="Data Source=HP\SQL2014;
     Initial Catalog=MNew;   
     Trusted_Connection=False;       
     Persist Security Info=True;
     multipleactiveresultsets=True;" 
   providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p>and for Entity frame work </p>
  
  <pre><code>&lt;add name="MNewEntities" connectionString="metadata=res://*/EntityModel.Model1.csdl|res://*/EntityModel.Model1.ssdl|res://*/EntityModel.Model1.msl;provider=System.Data.SqlClient;
     provider connection string=&amp;quot;
     data source=HP\SQL2014;
     initial catalog=MNew;
     integrated security=True;
     MultipleActiveResultSets=True;
     App=EntityFramework&amp;quot;" 
   providerName="System.Data.EntityClient" /&gt;
  </code></pre>