Cannot refer to '<name>' because it is a member of the value-typed field '<name>' of class '<classname>' which has 'System.MarshalByRefObject' as a base class

 

Updated: July 20, 2015

The System.MarshalByRefObject class enables applications that support remote access to objects across application domain boundaries. Types must inherit from the MarshalByRejectObject class when the type is used across application domain boundaries. The state of the object must not be copied because the members of the object are not usable outside the application domain in which they were created.

Error ID: BC30310

To correct this error

  1. Check the reference to make sure the member being referred to is valid.

  2. Explicitly qualify the member with the Me keyword.

MarshalByRefObject
Dim Statement

Show: