title: ASP.NET MVC & SQL Server
body: <p>I am trying to switch between <code>DbContext</code> and <code>System.Data.SqlClient</code> as my database connection for my .NET project in Visual Studio. </p>
  
  <p>I have called the <code>SqlConnection</code> object and passed the connection string found in the <code>web.config</code> file as a parameter for its constructor.</p>
  
  <p>When I try to open the session, I get an error </p>
  
  <blockquote>
    <p>Named Pipes Provider, error: 40 - Could not open a connection to SQL Server.</p>
  </blockquote>
  
  <p>What's the problem?</p>