Azure에서 호스팅되는 세 섹션으로 분할 된 응용 프로그램이 있습니다.
(1) 클라이언트 응용 프로그램 (HTML5 , CSS3, JS),
(2) 웹 API,
(3) SQL Server 데이터베이스 인스턴스.Azure - WebAPI가 Azure DB에 연결할 수 없습니다. 오류 : 시스템에서 지정한 파일을 찾을 수 없습니다. [SqlException]
나는이 모든 응용 프로그램을 배포 할 때 하늘빛의 데이터베이스의 방화벽 설정에서 클라이언트 IP를 활성화 한 후, 그러나, 나는 웹 API에서 다음과 같은 오류를 얻고, 로컬 호스트 작업 :
[Win32Exception]: The system cannot find the file specified [SqlException]: 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: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)
Azure에서 방화벽 설정을 확인하려고했는데 WebAPI 서비스가 데이터베이스에 액세스해야 함을 의미하는 "Azure Services에 대한 액세스 허용"이 있습니다.
난 그냥 성공적으로뿐만 아니라의 Web.config 내에서 동일한 자격 증명을 사용하여 SQL Server Management Studio를 통해 연결했다.
확인할 사항이 있습니까?
당신은 인증 및 권한 부여를위한 ASP.Net 아이덴티티를 사용하십니까? – Win
@Win - 그렇습니다. App_Data에 .mdf 파일이 있어야합니다. –