Topaz Filer - Email filing software
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...
 
New BootFX DBGet build available
Twitter and Snow… simple #uksnow
 
    
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...
 
Windows 7 compatible tool for mounting ISO images
Introduction to BootFX’s Object Relational Mapping Functionality article now live on CodeProject
 
    
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...
 
Xenu Link Sleuth
Chromium OS – really?
 
    
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...
 
Invocation Software – the new name for the makers of Topaz Filer
Agile Modeling
 
    
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




Ad
BootFX
Reliable and powerful .NET application framework.
Looking to invest in a major software project? Technical and commercial advice available here.
Other Helpful Sites
MBR 247
Topaz Filer
SharePoint Email Filing
Software Advisory Services
 
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