Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2007, 03:37 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to koraykazgan
Default Events with IIS hosted remoting

Hi there,

I want to program a remoting application, where the remotable object will be hosted in IIS. This should be a singleton object, because I need to exchange information between users.

Besides I will have a winForms application, which will activate that object and use it, as it were local. I have programmed such an application, but when I want to raise events, I am recieving deserialization errors.

The remotable class is inherited from MarshalByRefObject. I have defined a delegate outside the class. Besides I have written a class which is deriving from eventargs.

So I have defined an event in the remotable class.

I have analyzed many samples and articles about that problem, but I couldn't find a solution.

Can you help me with my problem? A sample program, which is working in this scenario would be best.

Thanks for help,
bye.

F/\nt/\sy PRODUCTIONS
 
Old May 1st, 2007, 03:49 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

While I was experimenting with remoting I tried the very same thing. You can't do it. At least not with a single remoted object.

Think of the remoted object as an answering machine. You can call to it and leave a message. So can I. But the answering machine doesn't call me when you leave a message.

In order to achieve what you want (raise an event on the remote object that will propagate out to all clients of the remote object) you will need to build in two way remoting. The remote application will have to establish its own connection to the client in order to take an incoming remoting call and pass data to all the clients it is connected to.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosted Form of Component angelboy C# 2005 7 March 31st, 2008 02:36 PM
Hosted BeerHouse and sub directory gb012993 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 16th, 2008 01:48 AM
.net remoting problem while hosting in public IIS dotnetpranker C# 3 March 19th, 2007 07:05 AM
Moving App to Hosted site dthoma128 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 13 December 19th, 2006 03:59 PM
Remoting and Events teobar VB.NET 0 June 11th, 2003 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.