PDA

Click to See Complete Forum and Search --> : .NET Remoting


Johnny Kauffman
Jan 9th, 2002, 02:15 PM
I can do all three methods of .NET remoting: SingleCall, Singleton, and Client Activated Objects (CAO).

How do I use the public events of the remoted class??

I can create my object withevents and it will work fine, but if I try to handle one of the object's events in a sub, I get an error when I create the object, claiming that it can not find the file. This happens in all three methods of remoting. :mad:

--Johnny

Johnny Kauffman
Jan 10th, 2002, 01:21 PM
Aw, you guys never respond to my questions. :(

Well, anyway. I have tried a few more things and I'm going to list them so nobody has to repeat these steps when trying to figure it out.


1. I have tried passing the remote class a delegate of a function on my client machine, and haveing the remote class invoke the delegate. But I got the same error.:(

2. I have tried making a public delegate on the remote class, and setting it to a function on my client machine, and (again) having the remote class invoke that delegate. I got the same error.:(

3. I have tried declaring an event on the remote class, making a delegate type for the event, passing in the delegate from the client, and invoking it from the remote class. I got the same error.:(

4. I have tried declaring an event on the remote class, making a public delegate for the event, setting that delegate to a function from the client, and invoking it from the remote class. I got an even uglier error.:confused:

5. I have tried declaring an event on the remote class, making a delegate type for the event, creating a delegate for the event on the remote class and a delegate for the function in the client, and combining them. It didn't fail! But nothing happened. :mad:


I am becoming very frustrated with this. I believe delegates are the correct thing to use.. has anybody else done .NET remoting that can help?

--Johnny