I got this error after firewall enable.
I did add ports to firewall look at enable sqlserver port
then again I got that error.
Enable both Named Pipes and TCP/IP in the SQL Server Configuration Manager , you can find it in:
Startmenu> allprogram > microsoft sql server > configuration tools.