diff --git a/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs b/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs index e004d0a0c1..9ac85da8d0 100644 --- a/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs +++ b/src/DotVVM.Framework/ViewModel/Serialization/ViewModelSerializationMap.cs @@ -215,7 +215,7 @@ public ReaderDelegate CreateReaderFactory() let parameters = method.GetParameters() where parameters.Length == 1 let parameterType = parameters[0].ParameterType - where parameterType != typeof(object) + where parameterType != typeof(object) && parameterType != typeof(byte[]) where parameterType != typeof(DateTime) && parameterType != typeof(DateTime?) where parameterType != typeof(DateTimeOffset) && parameterType != typeof(DateTimeOffset?) select new { key = parameterType, value = method }