events and remoting
-
i have just started working on .net remoting . well, an event is raised on some method call in the remote object. But while i assign a handler to the remote object's event property a SecurityException is raised stating : "Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."
-
i have just started working on .net remoting . well, an event is raised on some method call in the remote object. But while i assign a handler to the remote object's event property a SecurityException is raised stating : "Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."
Hi, Just happened to see that same error yesterday... check out this link http://www.codeproject.com/useritems/RemotingEvent.asp Section solution 2. When you implement a wrapper class which can be accessed from both client and server side you app should work Greetings Kaine
-
i have just started working on .net remoting . well, an event is raised on some method call in the remote object. But while i assign a handler to the remote object's event property a SecurityException is raised stating : "Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."
Hi. This is because of the remoting security. Normally types that are in GAC-registered assemblies are allowed to be serialized and deserialized, unless they're derived from: - System.Runtime.Remoting.ObjRef - System.DelegateSerializationHolder - System.Runtime.Remoting.IEnvoyInfo - System.Runtime.Remoting.Lifetime.ISponsor you have to set the typefilterlevel to "Full" in your channel-configuration. for more information take a look at this: http://msdn2.microsoft.com/en-us/library/5dxse167(vs.80).aspx[^] greets m@u