Pass an object to a server by reference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fang

    Pass an object to a server by reference

    I try to pass an object to a server by reference in
    remoting, but I got a SerializationEx ception. Using
    debugger I got following error message,

    An unhandled exception of
    type 'System.Runtime .Serialization. SerializationEx ception'
    occurred in mscorlib.dll

    Additional information: Because of security restrictions,
    the type System.Runtime. Remoting.ObjRef cannot be
    accessed.

    What happened and how do I fix it? Any help would be
    appreciated.

    Thanks

    Fang
  • Michael Giagnocavo [MVP]

    #2
    Re: Pass an object to a server by reference

    Are you using the V1.1 framework? If so, you'll need to configure some
    security settings. Check this article out:



    -mike
    MVP

    "Fang" <fas296@aol.com > wrote in message
    news:06a301c3ae f1$e5850fc0$a10 1280a@phx.gbl.. .[color=blue]
    > I try to pass an object to a server by reference in
    > remoting, but I got a SerializationEx ception. Using
    > debugger I got following error message,
    >
    > An unhandled exception of
    > type 'System.Runtime .Serialization. SerializationEx ception'
    > occurred in mscorlib.dll
    >
    > Additional information: Because of security restrictions,
    > the type System.Runtime. Remoting.ObjRef cannot be
    > accessed.
    >
    > What happened and how do I fix it? Any help would be
    > appreciated.
    >
    > Thanks
    >
    > Fang[/color]



    Comment

    • Fang

      #3
      Re: Pass an object to a server by reference

      Thanks a lot, Mike.

      Fang
      [color=blue]
      >-----Original Message-----
      >Are you using the V1.1 framework? If so, you'll need to[/color]
      configure some[color=blue]
      >security settings. Check this article out:
      >
      >http://www.ingorammer.com/remotingFAQ/changes2003.html
      >
      >-mike
      >MVP
      >
      >"Fang" <fas296@aol.com > wrote in message
      >news:06a301c3a ef1$e5850fc0$a1 01280a@phx.gbl. ..[color=green]
      >> I try to pass an object to a server by reference in
      >> remoting, but I got a SerializationEx ception. Using
      >> debugger I got following error message,
      >>
      >> An unhandled exception of
      >>[/color][/color]
      type 'System.Runtime .Serialization. SerializationEx ception'[color=blue][color=green]
      >> occurred in mscorlib.dll
      >>
      >> Additional information: Because of security[/color][/color]
      restrictions,[color=blue][color=green]
      >> the type System.Runtime. Remoting.ObjRef cannot be
      >> accessed.
      >>
      >> What happened and how do I fix it? Any help would be
      >> appreciated.
      >>
      >> Thanks
      >>
      >> Fang[/color]
      >
      >
      >
      >.
      >[/color]

      Comment

      Working...