Well, I got it working using the soap formatter. Is there a way to do it using the binary formatter?
This is the code that I am using to serialize using the soap formatter.
Dim formatter As Soap.SoapFormatter = New Soap.SoapFormatter
formatter.AssemblyFormat = FormatterAssemblyStyle.Simple
Dim writeStream As New MemoryStream
formatter.Serialize(writeStream, filter)
Return System.Text.Encoding.UTF8.GetString(writeStream.ToArray)
I dont beleive that I need to use soap and besides the soap formatter has alot more overhead than the binary formatter.