You attempted to assign a value to a read-only identifier. You cannot assign a value to a read-only identifier. For example, host defined objects and external COM objects.
To correct this error
-
Do not assign values to read-only identifiers.