Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 1st, 2007, 03:37 AM
Registered User
 
Join Date: May 2007
Location: Izmir, EGE, Turkey.
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
Reply With Quote
  #2 (permalink)  
Old May 1st, 2007, 03:49 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.