CDISP0050E

A type name is expected. The specified name is name and is not a valid type in this scope.

A name is specified where a type name is expected, but the specified name does not refer to a type.
Ensure that a valid type name is specified.