A statement is attempting to access a member of an object, but that member has visibility modifiers that prevent it from being accessed from the current scope. For example, a private field cannot be accessed from outside a class.
To correct this error
Access the member by other means, such as though a public method.
Change the modifiers of the member that the code accesses.