Multimobile Development: Building Applications for any Smartphone
anyone remote typed datasets?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.remoting.


Dave DePottie
I'm having trouble remoting typced datasets, any help would be
appreciated!!!

I'd prefer to just use datasets on the server, and typed datasets on the
client for binding to controls.

Thanx

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Dave DePottie
You can pass a typed dataset to a routine that takes a dataset, because
typed datasets decend from datasets. For example,

public void GetData(DataSet ds){
... fill dataset

works perfectly fine whether you pass a typed dataset or a dataset.

However, if the GetData method is remoted, I get the error...
System.IO.FileNotFoundException

"Dave DePottie" <Click here to reveal e-mail address> wrote in message
news:eBA78.51619$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
Jonathan Hawkins \(MS\)
Dave

You can pass untyped datasets over Remoting.
However typed datasets cannot be passed over Remoting in v1.

Consider using DataSet.WriteXmlSchema WriteXml to save, then transport over
the network then use ReadXmlSchema, ReadXml to restore the DataSet.

-jhawk

This posting is provided "AS IS" with no warranties, and confers no rights.

"Dave DePottie" <Click here to reveal e-mail address> wrote in message
news:fiC78.83233$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
Davide Bedin
I have a server and a client assemblies that use a common typed dataset and
they communicate through remoting and I'm able to send and receive typed
dataset. What do you mean when you say you cannot pass typed dataset over
remoting?

By the way I had a problem passing the datatables defined in a typed dataset
(base datatable are remotable but for some reason typed datatable are not by
default) and MS Support gave me this solution.

Add the serializable attribute to every datatable class defined in the typed
dataset (the dataset already has the serializable attribute and the code for
it) and then add this piece of code to every datatable

protected sub New (byval info as SerializationInfo, byval context as
StreamingContext)
mybase.new(info,context)
initvars
end sub

Adding this I'm able to pass also a single datatable defined in a typed
dataset to and from a remote object.

Regards,
Davide Bedin
BEDIN Shop Systems srl

"Jonathan Hawkins (MS)" <Click here to reveal e-mail address> wrote in message
news:e#CtDn2rBHA.1604@tkmsftngp04...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
    
Dave DePottie
thanx... will try this!!!

Dave

> Add the serializable attribute to every datatable class defined in the
typed
> dataset (the dataset already has the serializable attribute and the code
for
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
New book project – Multimobile Development: Building Applications for any Smartphone
Dive into HTML5
 
    
Siew Fai
Hi,

Could you please post this in C# please...

Thanks.
sf

"Davide Bedin" <Click here to reveal e-mail address> wrote in message
news:eLh7HEIsBHA.2432@tkmsftngp07...
> I have a server and a client assemblies that use a common typed dataset
and
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
 
System.Data.DataSet
System.IO.FileNotFoundException
System.Runtime.Serialization.SerializationInfo
System.Runtime.Serialization.StreamingContext




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734