Unable to access the '%1!s!' database because no online secondary replicas are enabled for read-only access. Check the availability ...

Unable to access the '%1!s!' database because no online secondary replicas are enabled for read-only access. Check the availability group configuration to verify that at least one secondary replica is configured for read-only access. Wait for an enabled replica to come online, and retry your read-only operation.