3

I am developing a MVC 5 application. In my MVC 5 application i want to create a mdf file from App-Data folder but when i want to add mdf file from Add New Item menu of Add_Data folder, i receive an 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

2
  • So did you see the event log? What does it say? Commented Aug 23, 2013 at 13:51
  • @Nilesh Event Viewer shows this LocalDB instance is corrupted. See the Windows Application event log for error details. Commented Aug 23, 2013 at 13:57

1 Answer 1

4

Try running

SqlLocalDB delete “v11.0”

followed by

SqlLocalDB create “v11.0”

SqlLocalDB.exe is located in C:\Program Files\Microsoft SQL Server\110\Tools\Binn.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.