remoting deserilization

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

    #1

    remoting deserilization

    Hi guys,

    I am puzzeled.. I am writing a simple remoting app.. where there's a client,
    a server and a service class which will work between client and server so i
    mark this service class as Serializable.. but strangely on the client side
    it complains that it does not see this class whilst complaining and giving
    the errors of

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

    Additional information: Cannot find the assembly Communicate,
    Version=1.0.174 5.4114, Culture=neutral , PublicKeyToken= null.

    _______________ ______

    and I did mark my service class as serializable.. copy and paste just incase
    you don't believe me

    [Serializable]

    public class Session



    thanks

    Tom


  • Patrik Löwendahl [C# MVP]

    #2
    Re: remoting deserilization

    Do you have a reference in the client application to the dll where the class
    lives?

    --
    Patrik Löwendahl [C# MVP]
    www.cshrp.net - "Elegant code by witty programmers"
    "Tom" <tomgaomail@opt ushome.com.au> wrote in message
    news:416957c4$0 $23896$afc38c87 @news.optusnet. com.au...[color=blue]
    > Hi guys,
    >
    > I am puzzeled.. I am writing a simple remoting app.. where there's a
    > client,
    > a server and a service class which will work between client and server so
    > i
    > mark this service class as Serializable.. but strangely on the client side
    > it complains that it does not see this class whilst complaining and giving
    > the errors of
    >
    > An unhandled exception of type
    > 'System.Runtime .Serialization. SerializationEx ception' occurred in
    > mscorlib.dll
    >
    > Additional information: Cannot find the assembly Communicate,
    > Version=1.0.174 5.4114, Culture=neutral , PublicKeyToken= null.
    >
    > _______________ ______
    >
    > and I did mark my service class as serializable.. copy and paste just
    > incase
    > you don't believe me
    >
    > [Serializable]
    >
    > public class Session
    >
    >
    >
    > thanks
    >
    > Tom
    >
    >[/color]


    Comment

    • Tom

      #3
      Re: remoting deserilization

      sorry yeah I made a mistake it was referenced on the client but wasn't on
      the server...

      now its all good

      thanks :D


      "Patrik Löwendahl [C# MVP]" <patrik.lowenda hl@csharpsweden .com> wrote in
      message news:#QDgLiurEH A.2136@TK2MSFTN GP14.phx.gbl...[color=blue]
      > Do you have a reference in the client application to the dll where the[/color]
      class[color=blue]
      > lives?
      >
      > --
      > Patrik Löwendahl [C# MVP]
      > www.cshrp.net - "Elegant code by witty programmers"
      > "Tom" <tomgaomail@opt ushome.com.au> wrote in message
      > news:416957c4$0 $23896$afc38c87 @news.optusnet. com.au...[color=green]
      > > Hi guys,
      > >
      > > I am puzzeled.. I am writing a simple remoting app.. where there's a
      > > client,
      > > a server and a service class which will work between client and server[/color][/color]
      so[color=blue][color=green]
      > > i
      > > mark this service class as Serializable.. but strangely on the client[/color][/color]
      side[color=blue][color=green]
      > > it complains that it does not see this class whilst complaining and[/color][/color]
      giving[color=blue][color=green]
      > > the errors of
      > >
      > > An unhandled exception of type
      > > 'System.Runtime .Serialization. SerializationEx ception' occurred in
      > > mscorlib.dll
      > >
      > > Additional information: Cannot find the assembly Communicate,
      > > Version=1.0.174 5.4114, Culture=neutral , PublicKeyToken= null.
      > >
      > > _______________ ______
      > >
      > > and I did mark my service class as serializable.. copy and paste just
      > > incase
      > > you don't believe me
      > >
      > > [Serializable]
      > >
      > > public class Session
      > >
      > >
      > >
      > > thanks
      > >
      > > Tom
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...