Re: Problem with remote events

From: Sunny (sunnyask_at_icebergwireless.com)
Date: 03/01/04


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
>



Relevant Pages

  • Re: Problems with Remote Events using .NET 2.0
    ... Server config file: ... Client config file: ... when the server hits the line of code ...
    (microsoft.public.dotnet.framework.remoting)
  • Remoting Security issues
    ... I've done this so many times in the past, so I hope I am missing something ... and my client config file is similar except for the necessary changes. ... I pass a custom object from my client to my server I get the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Remoting Security issues
    ... The should be within the <channel> tag, ... My server config file looks like this: ... > and my client config file is similar except for the necessary changes. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: DOCSIS vulnerability
    ... Sure, you can get a config file onto the modem, but if ... the router will not allow the cable modem to finish booting (With some kind ... > items, a syslog server, a tftp server, a time server, and a config file to ... > rate limit their customers, it's how they keep their customers ...
    (Vuln-Dev)
  • Re: Deserialization exception when using MarshalByRef object with events
    ... In your server's config file you have the element outside ... > of code from the server, client, MarshalByRef object, and .config ... > public void Start ... > public class Bomb: MarshalByRefObject ...
    (microsoft.public.dotnet.framework.remoting)