title: Web server unable to connect to SQL Server
body: <p>I have a site working under IIS7 and it was working fine. Someone restarted the server and after that it stopped working. After searching about the issue I found it is unable to connect to SQL Server and here is the error:</p>
  
  <p><strong>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)</strong> </p>
  
  <p>I didn't do any changes and the site was working fine but this problem happened only after restart, I checked SQL server remote access and TCP protocol and they were enabled. How do I fix the issue?</p>