diff --git a/src/Umbraco.Core/Composing/DisableAttribute.cs b/src/Umbraco.Core/Composing/DisableAttribute.cs index 6968e702a1..e826f1c472 100644 --- a/src/Umbraco.Core/Composing/DisableAttribute.cs +++ b/src/Umbraco.Core/Composing/DisableAttribute.cs @@ -1,4 +1,5 @@ using System; +using System.Reflection; namespace Umbraco.Core.Composing { @@ -21,9 +22,9 @@ namespace Umbraco.Core.Composing public DisableAttribute() { } - public DisableAttribute(string fullTypeName) + public DisableAttribute(string fullTypeName, string assemblyName) { - DisabledType = Type.GetType(fullTypeName); + DisabledType = Assembly.Load(assemblyName)?.GetType(fullTypeName); } ///