PC Review


Reply
Thread Tools Rate Thread

Binary serialization of datasets doesn't work

 
 
=?Utf-8?B?TWFyayBXYWxzaCAoS0FaIFRlY2hub2xvZ3kgU2Vy
Guest
Posts: n/a
 
      10th Nov 2005
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
 
Reply With Quote
 
 
 
 
Ravi[MSFT]
Guest
Posts: n/a
 
      11th Nov 2005
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)"
<(E-Mail Removed)> wrote in message
newsD1D6F87-C271-4434-A44C-(E-Mail Removed)...
> 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



 
Reply With Quote
 
=?Utf-8?B?TWFyayBXYWxzaCAoS0FaIFRlY2hub2xvZ3kgU2Vy
Guest
Posts: n/a
 
      13th Nov 2005
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






"Ravi[MSFT]" wrote:

> 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)"
> <(E-Mail Removed)> wrote in message
> newsD1D6F87-C271-4434-A44C-(E-Mail Removed)...
> > 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

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ds.RemotingFormat=SerializationFormat.Binary doesn't work over HTT =?Utf-8?B?TWFyayBXYWxzaCAoS0FaIFRlY2hub2xvZ3kgU2Vy Microsoft Dot NET Framework 3 22nd Nov 2005 11:56 PM
Xml Serialization doesn't always work =?Utf-8?B?cGFnYXRlcw==?= Microsoft C# .NET 0 18th Oct 2005 08:42 PM
Compiled binary doesn't work Saman Microsoft Dot NET Compact Framework 2 26th Mar 2005 08:48 AM
Question on binary serialization of datasets Wild Wind Microsoft VB .NET 2 26th Jun 2004 12:58 AM
Binary Serialization and DataSets Peter Microsoft ADO .NET 0 10th Sep 2003 02:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 AM.