The current object does not inherit from class "name" (Error 1935)

You have specified a class name that is not in the inheritance hierarchy of the current object.