|
| 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
|
|
|
| |
|
| |
| |
| 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]
|
|
|
| |
|
| |
| |
| 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]
|
|
|
| |
|
|
| |
| |
| 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]
|
|
|
| |
|
| |
| |
| 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]
|
|
|
| |
|
| |
|
| |
| 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]
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|