Script '%1' returned an object of type '%2', which is not a subtype of 'System.Void' or 'System.String'

Error code -10185
Error constant EL_DNET_INVALID_RETURN_OBJ
Parameter 1 The method name.
Parameter 2 The returned object type.
 Probable cause