Binary serialization of datasets doesn't work

G

Guest

Hi.

I have an application that uses V2 framework. A Windows form application
calls a COM+ component function using HTTP remoting (binary channel). ie:

ChannelServices.RegisterChannel(New HttpChannel(Nothing, New
BinaryClientFormatterSinkProvider, Nothing), False)

The COM+ function queries a database and returns a dataset with its
RemotingFormat property set to binary ie:

ds.RemotingFormat = SerializationFormat.Binary.

When the front-end receives the dataset and I check the RemotingFormat it
indicates XML!!!

Does binary dataset serialization work over HTTP remoting? Is this a bug?

Thanks, Mark
 
R

Ravi[MSFT]

This is one of those thing which is by design.

We have decided not to serialize remoting format as it is more of a runtime
parameter to do serialization and not an intrinsic state property of the
cache itself.

We would not have had a property like this on the dataset if we had some way
of informing the remoting architecture through a parameter that the
serialization should happen in XML or Binary. Since this was not possible,
we came up with this property on the dataset but decided not to round-trip
the value.

This is the same reason why we do not serialize this RemotingFormat property
through msdata annotation even when serializing to XSD through
ds.WriteXmlSchema.

HTH,
Ravinder

"Mark Walsh (KAZ Technology Services)"
 
G

Guest

Hi Ravi,

Thank-you for taking the time to reply.

However, what I'm finding is that the dataset is NOT IN BINARY FORMAT when
transported over HTTP (I'm using Traceplus Web Detective to look at the HTTP
packets). This seems to contradict the help and marketing material:

"This new option enables a DataSet and a DataTable to be serialized in
binary format when using binary transports over remoting. In most cases this
will result great performance improvements and a noticeable reduction in both
memory and CPU usage when using DataSet/DataTable objects in applications
that use remoting to connect to different tiers."

I have found that transporting the datasets in Framework 2.0 is slower that
framework 1.1!

Mark Walsh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top