Topaz Filer: if you use e-mail for business, we can save you money and decrease your risk.
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...
 
Auto-following on Twitter
Ubuntu and XP on one “desktop”
 
    
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...
 
Outlook interop - stopping user properties appearing on Outlook message print
Seriously, why is “cut and paste” majorly newsworthy???
 
    
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...
 
Email Archiving and Email Filing - what’s the difference?
Web-based task/todo list management
 
    
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...
 
Open source windows
The Law Society’s guidelines on e-mail management
 
    
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.
Recession Busting Bespoke Software
Get through the recession by investing in bespoke software to decrease costs and create commercial opportunities.
Other DN247 Network Sites
.NET 247
SQL Server Wins
Old Skool Developer
 
Copyright © AMX Software Ltd 2008-2009. Portions copyright © Matthew Baxter-Reynolds 2001-2009. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - .NET 247 is a member of the DN247 Network - 4.0.30129.1734