Re: Problem with remote events
From: Sunny (sunnyask_at_icebergwireless.com)
Date: 03/01/04
- Next message: Paul Fi: "Re: i need people to join my new workspace at gotdotnet.com"
- Previous message: Amitabh: "Serialization"
- In reply to: magnus: "Problem with remote events"
- Next in thread: magnus: "Re: Problem with remote events"
- Reply: magnus: "Re: Problem with remote events"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Mar 2004 14:37:35 -0600
Hi Magnus,
Do you have refference to assembly which holds BroadcastEventWrapper at
the server?
Sunny
In article <521eb215.0403011146.1cf36b22@posting.google.com>,
magnusbl@simnet.is says...
> Hi
> I'm having a bit of a problem with getting event to work with
> remoting. I'm trying to get it to work with Ingo Rammers code.
> I've updated the config files to reflect the security changes in 1.1.
>
>
> This is the code I'm using:
>
> Server config file:
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="http" port="5555" />
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> <serverProviders>
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> </channels>
> <service>
> <wellknown mode="Singleton" type="Server.Broadcaster, Server"
> objectUri="Broadcaster.soap" />
> </service>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> Client config file:
> <configuration>
> <system.runtime.remoting>
> <application>
> <channels>
> <channel ref="http" port="0">
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> <serverProviders>
> <provider ref="wsdl" />
> <formatter ref="binary" typeFilterLevel="Full" />
> </serverProviders>
> </channel>
> </channels>
> <client>
> <wellknown type="General.IBroadcaster, General"
> url="http://localhost:5555/Broadcaster.soap" />
> </client>
> </application>
> </system.runtime.remoting>
> </configuration>
>
> Client code:
> String filename = @"..\..\eventlistener.exe.config";
> RemotingConfiguration.Configure(filename);
>
> IBroadcaster bcaster =
> (IBroadcaster) RemotingHelper.GetObject(typeof(IBroadcaster));
>
> BroadcastEventWrapper eventWrapper =
> new BroadcastEventWrapper();
>
> eventWrapper.MessageArrivedLocally +=
> new MessageArrivedHandler(HandleMessage);
>
> Here it all breaks down!!:
> bcaster.MessageArrived +=
> new MessageArrivedHandler(eventWrapper.LocallyHandleMessageArrived);
>
>
>
>
> And this is the error I receive:
> An unhandled exception of type 'System.Security.SecurityException'
> occurred in mscorlib.dll
>
> Additional information: Type System.DelegateSerializationHolder and
> the types derived from it (such as System.DelegateSerializationHolder)
> are not permitted to be deserialized at this security level.
>
>
> Any help at all would be appreciated (I'm really starting to pull my
> hair out :s )
>
> Magnus
>
- Next message: Paul Fi: "Re: i need people to join my new workspace at gotdotnet.com"
- Previous message: Amitabh: "Serialization"
- In reply to: magnus: "Problem with remote events"
- Next in thread: magnus: "Re: Problem with remote events"
- Reply: magnus: "Re: Problem with remote events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|