"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: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details. )"
Windows Log error details like this
%LOCALAPPDATA%\Microsoft\Microsoft SQL Server Local DB\Instances\.

Dipankar BiswasRank #992 · 2K reputationPosted May 8, 2015, 8:19 PM EDT
fnd
check this links..http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-1-user-profile.aspx
http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-2-instance-ownership.aspx
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 8, 2015, 9:11 PM EDT
http://stackoverflow.com/questions/26248293/sql-network-interfaces-error-50-local-database-runtime-error-occurred-canno
http://www.c-sharpcorner.com/forums/thread/227201/network-related-error-while-adding-an-mdf-file.aspx
i think it helps
Ravi KumarRank #2,085 · 690 reputationPosted May 8, 2015, 10:13 PM EDT
check the sql services are started or not.
go to run command-->services.msc
there you check sqlserver(MSSQL) started or not
Tharindu N Chathuranga46 reputationPosted May 10, 2015, 8:19 PM EDT