title: Connection string to SQL by EntityFramework and MVC
body: <p>I write web page in MVC, which use Entity Framework as ORM mapper. I put my connection string to web.config file. Here is it:</p>
  
  <pre><code>&lt;add name="JP_CMS" connectionString="Data Source=.;Initial Catalog=JP_CMS;
  User Id=CmsWebUser;Password=abcd1234abcd1234;"
  providerName="System.Data.SqlClient"/&gt;
  </code></pre>
  
  <p>I try to get data by this C# code</p>
  
  <pre><code>    public DataBaseContext()
          : base("JP_CMS")
      {
          Database.SetInitializer(new DropCreateDatabaseIfModelChanges&lt;DataBaseContext&gt;());
      }
  
  //------------------------------
  
      var db = new DataBaseContext();
      var result = db.Articles.ToList(); //&lt;- here is thrown exception
  //------------------------------
  </code></pre>
  
  <p>My local SQL server is running, this table is exists, but I get excepion like in this:</p>
  
  <p><img src="https://i.stack.imgur.com/O0OxE.png" alt="enter image description here"></p>
  
  <p>I think it is the most important expection: "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>
  
  <p>Could you help my by give some idea what I make wrong?</p>