Влияние на пользовательские атрибуты типа, загруженного с помощью ReflectionOnlyGetType (см. Assembly.ReflectionOnly), недопустимо. Используйте для этого 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.