If you enter your PC name, you have to also add the name of the SQL server instance:
MYPCNAME/SQLEXPRESS
For example.
Otherwise you may get away with
(localhost)
but that's not a good idea for release code, as it means each PC needs it's own instalation of SQL Server, and that will cause immense problems!
Have a look here:
SQL Server 2012 connection strings - ConnectionStrings.com[
^] - it gives examples of what your connection string should look like, and explains why.