The FILESTREAM database configuration cannot be changed for database '%1!s!'. The database is either a mirror database in ...

The FILESTREAM database configuration cannot be changed for database '%1!s!'.  The database is either a mirror database in Database Mirroring, or is in a secondary replica of an AlwaysOn availability group.  Connect to the server instance that hosts the primary database replica, and retry the operation.