I just installed SQL Server Express 2008 R2 and I have a problem connecting to it using the SQL Server Management Studio (locally).
All SQL Server services are started
I had the same error and I had to enable TCP/IP protocol and set IPALL TCP Port to 1433 to resolve the issue: