We are trying to personalize a component based on a Device Detection rule where the query string matches value
.
This is not working properly and below error is getting logged in Sitecore logs.
Any one faced this issue earlier?
ERROR Failed to get type of condition Exception: System.ArgumentException Message: GenericArguments[0], 'Sitecore.Rules.ConditionalRenderings.ConditionalRenderingsRuleContext', on 'Sitecore.Rules.Devices.QueryStringCondition`1[T]' violates the constraint of type 'T'. Source: mscorlib at System.RuntimeType.ValidateGenericArguments(MemberInfo definition, RuntimeType[] genericArguments, Exception e) at System.RuntimeType.MakeGenericType(Type[] instantiation) at Sitecore.Reflection.ReflectionUtil.GetGenericType(String typeName, Type genericArgumentType) at Sitecore.Rules.DefaultRuleFactory.GetRuleCondition[T](Database database, XElement element) Nested Exception: Exception: System.TypeLoadException Message: GenericArguments[0], 'Sitecore.Rules.ConditionalRenderings.ConditionalRenderingsRuleContext', on 'Sitecore.Rules.Devices.QueryStringCondition`1[T]' violates the constraint of type parameter 'T'. Source: mscorlib at System.RuntimeTypeHandle.Instantiate(RuntimeTypeHandle handle, IntPtr* pInst, Int32 numGenericArgs, ObjectHandleOnStack type) at System.RuntimeTypeHandle.Instantiate(Type[] inst) at System.RuntimeType.MakeGenericType(Type[] instantiation)