title: Database is read-only error in Secondary Replica of Alwayson Groups
body: <p>I tried many things and analyzed lots of documents but I haven't found a solution yet.</p>
  
  <p>I have three virtual machines in VmWare called (DC,SQLServer01,SQLServer02). All of SQL Servers are member of a domain.(DC) I installed failover cluster for SQLServer01 and SQLServer02. I did necessary configurations in SQLServer01. Then I installed SQL Server 2014 for both servers. Now, I created an alwaysOn group. SQLServer01 is a primary and other is secondary. When I cut the connection of SQLServer01, everything is fine (Secondary becomes primary). It is acceptable for other condition. </p>
  
  <p>However, when all servers are online, I can not do any operation (insert,update,delete,alter ,etc) except read operations in my secondary replica. I see always "database is read only" error. In properties of Alwayson group, both primary and secondary replica have all connections and secondary readable is "YES".</p>
  
  <p>I want to make CRUD operations even if all servers are online. (I mean, do everything also for secondary replica. )</p>
  
  <p>So, do you have any suggestion or idea? </p>
  
  <p>Thank your time and consideration.</p>