HighTechTalks DotNet Forums  

Help: how to pass a Dictionary as a parameter via .net remoting ?

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Help: how to pass a Dictionary as a parameter via .net remoting ? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Gianluca Pezzoli
 
Posts: n/a

Default Help: how to pass a Dictionary as a parameter via .net remoting ? - 11-10-2007 , 12:20 PM






Hi,

I have on the server a service with a .net remoting channel opened with
singlecall option.
Comunication is on TCP and with binary serialization.
There is a public function accessible via entrypoint like this

Function Test(ByVal Param as Dictionary(Of String, Object) ) As Object
....

Function Test should get Param, do something and then return a new
Dictionary with some modified entry from Param and new entrys added by Test.

I have seen that the function Test is able to return a Dictionary.
The problem is:
the client correctly fill Param Dictionary, then call Test and sends it via
..net remoting
but Function Test receive Param = nothing !!

Is there a problem with binary serializazion/deserialization on the channel
?

Dataset works fine, why not Dictionary ?

Thanks in advance.

Gianluca


Reply With Quote
  #2  
Old   
Gianluca Pezzoli
 
Posts: n/a

Default Re: how to pass a Dictionary as a parameter via .net remoting ? - 11-12-2007 , 07:52 AM






I have found the solution here
http://connect.microsoft.com/VisualS...edbackID=91585

Bye
Gianluca

"Gianluca Pezzoli" <giangysan (AT) community (DOT) nospam> ha scritto nel messaggio
news:%23IwvVZ8IIHA.2268 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Hi,

I have on the server a service with a .net remoting channel opened with
singlecall option.
Comunication is on TCP and with binary serialization.
There is a public function accessible via entrypoint like this

Function Test(ByVal Param as Dictionary(Of String, Object) ) As Object
...

Function Test should get Param, do something and then return a new
Dictionary with some modified entry from Param and new entrys added by
Test.

I have seen that the function Test is able to return a Dictionary.
The problem is:
the client correctly fill Param Dictionary, then call Test and sends it
via .net remoting
but Function Test receive Param = nothing !!

Is there a problem with binary serializazion/deserialization on the
channel ?

Dataset works fine, why not Dictionary ?

Thanks in advance.

Gianluca


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.