Cause
This error occurs if you attempt to assign an object reference to a property and the class of the reference is not compatible with the defined type of the property.
Action
Redefine the property definition to the correct class, or fix the portion of code that resulted in the error in your application program. For details, see "