Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. events and remoting

events and remoting

Scheduled Pinned Locked Moved C#
csharpsecurity
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    D2raghu
    wrote on last edited by
    #1

    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."

    K L 2 Replies Last reply
    0
    • D D2raghu

      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."

      K Offline
      K Offline
      KaineDunno
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D D2raghu

        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."

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups