고 가용성으로 구성된 SQL Server 2012에 Entity Framework를 사용하여 ASP.NET MVC 웹 응용 프로그램을 연결했습니다. 보조 서버로 자동 장애 조치되도록 구성되어 있으며 SQL Server Management Studio에 연결하려고 할 때 제대로 작동합니다. 나는 이것을 확인하고 데이터베이스에 데이터를 읽거나 쓸 수 있었다.SQL Server 가용성 그룹 자동 장애 조치가 작동하지 않습니다.
는 어떻게 든이 응용 프로그램에서 발생하지 않습니다 나는 다음과 같은 오류 있어요 :
<add name="DataModel"
connectionString="Data Source=DBCL01;Initial Catalog=Database;User Id=user; Password=password;"
providerName="System.Data.SqlClient" />
사람은 내가 해결할 수있는 방법을 알고 :
The target database ('DbName') is in an availability group and is currently accessible for connections when the application intent is set to read only. For more information about application intent, see SQL Server Books Online.
이 내가 사용하고있는 연결 문자열입니다 이 문제?