"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\.
Tharindu N ChathurangaPosted May 11, 2015, 12:19 AM
Ravi KumarPosted May 9, 2015, 2:13 AM
check the sql services are started or not.
go to run command-->services.msc
there you check sqlserver(MSSQL) started or not
Nanhe SiddiquePosted May 9, 2015, 1:11 AM
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
Dipankar BiswasPosted May 9, 2015, 12:19 AM
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