É inválido reflectir sobre os atributos personalizados de um Tipo carregado através de ReflectionOnlyGetType (consultar Assembly.ReflectionOnly), em vez disso, utilize 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.