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

When invoked, the script returned an object of unexpected type. Change your method to always return an object of the correct type.