Não é possível refletir os atributos personalizados de um tipo carregado via ReflectionOnlyGetType (consulte Assembly.ReflectionOnly) -- use CustomAttributeData.
Click to search this error in Google
English version
It is illegal to reflect on the custom attributes of a Type loaded via ReflectionOnlyGetType (see Assembly.ReflectionOnly) -- use CustomAttributeData instead.