1
Answer

soap serilizer does not support seriziling generic type

Edwin Ogodo

Edwin Ogodo

12y
2.6k
1
i had this error in my code when am trying to serialize an object from server to client
soap   serialize does not support  serializer  generic type
Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
The SoapFormatter class can only serialize objects that could have been created with .NET 1.1.

As generic types were not introduced until .NET 2.0, they cannot therefore be serialized.

If you're trying to serialize a List<T>, then you could use an ArrayList instead or, if you're trying to serialize a generic Dictionary then you could use a Hashset.

Otherwise, I'd use the BinaryFormatter instead.