The type of the value {0} is not valid. The PSPrimitiveDictionary class accepts only values of types that are fully serializable ...