2013-08-23 1 views
3

MVC 5 응용 프로그램을 개발 중입니다. 내 MVC 5 응용 프로그램에서 나는 앱 - 데이터 폴더에서 MDF 파일을 만들려고하지만 난 Add_Data 폴더의 새 항목 추가 메뉴에서 MDF 파일을 추가 할 때, 나는App-Data에서 SQL 데이터베이스를 만들 때 네트워크 연결 오류가 발생했습니다.

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

+0

그래서 이벤트 로그를 보았습니까? 그것은 무엇을 말하는가? – Nilesh

+0

@Nilesh 이벤트 뷰어는이'LocalDB 인스턴스가 손상되었음을 보여줍니다. 오류에 대한 자세한 내용은 Windows 응용 프로그램 이벤트 로그를 참조하십시오. ' –

답변

4

을 실행 해 오류가 발생
SqlLocalDB delete “v11.0” 

SqlLocalDB.exe가 C:\Program Files\Microsoft SQL Server\110\Tools\Binn에 위치하고
SqlLocalDB create “v11.0” 

하였다.

+1

문제를 해결해 주셔서 감사합니다. –

관련 문제