Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / February 2008

Tip: Looking for answers? Try searching our database.

Remoting with Generics?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Osterberg - 25 Feb 2008 12:14 GMT
i want to use Remoting for IPC (inter process communication).

I thought that the most flexible Exchange (remoted) object would be a
singleton implementing the Dictionary(K,T) interface (K & T being exposed
generic key and data types).

This way I could for example use the same standard exchange class to
exchange data of various types and with various key types. If i try it
howver i always get a 'transparent proxy cannot be converted into ....'
error. I googled a bit and found an example (
http://msdn2.microsoft.com/en-us/library/ms180986.aspx )supposedly
implementing remoting with generics, but it uses external config file with
hardcoded host names and doesn't actually seems to call anything 'remotely'
(just methods on a locally declared instance?!), unless i am not reading the
code right of course.

I could of course just make the key and data type 'Object' and use a non
generic hashtable, but this makes it harder to use so I was wondering if it
is possible to use a generic class with a dictionary interface that way.

Thanks for any related info. or suggestion!

Regards,

Frank
Frank Osterberg - 25 Feb 2008 13:21 GMT
Never mind, i got it to work, it was a logic error.
Thanks!

>i want to use Remoting for IPC (inter process communication).
>
[quoted text clipped - 22 lines]
>
> Frank

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.