title: ASP.NET MVC5 C# - error occurred connection to SQL Server. server not found/ not accessible
body: <p>I am learning ASP.NET MVC5 and as such I need to access some database in order to get the data, since I am using the Code First method. As I was following some tutorial online, they used "update-database" in Visual Studio and connected to the DB. however, when I tried, I got this error:</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.</p>
  </blockquote>
  
  <p>Most of the people who posted here were discussing VS 2012 or before, so this is for VS 2015 when trying to access the database. </p>