Error 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. )
how can i solve this???

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 30, 2015, 5:05 AM EDT
Also, see if this will help: http://blogs.msdn.com/b/sqlexpress/archive/2011/12/09/using-localdb-with-full-iis-part-1-user-profile.aspx
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 5, 2015, 3:42 AM EDT
Can you please give this post a read: http://stackoverflow.com/questions/20412289/creating-a-security-database-that-already-exist
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 30, 2015, 12:17 AM EDT
Tharindu N Chathuranga46 reputationPosted Apr 30, 2015, 12:26 AM EDT
Tharindu N Chathuranga46 reputationPosted May 4, 2015, 8:27 PM EDT
Tharindu N Chathuranga46 reputationPosted May 6, 2015, 12:07 AM EDT