No se puede establecer el valor de la propiedad 'X' porque no se puede escribir en el miembro. Si el miembro es una propiedad, debe tener un establecedor accesible; si es un campo, no debe ser de solo lectura.
Click to search this error in Google
English version
Cannot set the value of 'X' because the member is not writable. If the member is a property, it must have an accessible setter; otherwise, if it is a field, it must not be read-only.