Remoting - very inconsistent behavior - help!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Remoting - very inconsistent behavior - help!

  1. #1
    Larry Leach Guest

    Remoting - very inconsistent behavior - help!


    Here's the scenario: Winforms, tcp, host process and client process running
    on same machine, both using channel 8085. Client process sends dataset to
    host process, host saves it to database.

    Sometimes this works fine, but (very) often (and no rhyme or reason to it
    that I have been able to deduce) I get an error. Note that the exact same
    code with the exact same data sometimes works, and sometimes does not. Here
    is the error:

    "System.Runtime.Serialization.SerializationException: The constructor required
    by an object implementing ISerializable was not found.
    at System.Runtime.Remoting.RemotingProxy.CallProcessMessage(IMessageSink
    ms, Message msg, ArrayWithSize proxySinks)
    at System.Runtime.Remoting.RemotingProxy.InternalInvoke(Message reqMsg,
    Boolean useDispatchMessage)
    at System.Runtime.Remoting.RemotingProxy.Invoke(IMessage reqMsg)
    at System.Runtime.Remoting.RealProxy.PrivateInvoke(Int32 frame, Int32
    type)
    at ViperEmployer.Employer.ValidateAndSave(DataSet ds, ArrayList& Errors)
    in C:\SourceCode\Viper.Net\ViperHost\ViperEmployer\Employer.vb:line 106
    at Viper.EmployerDetail.cmdSave_Click(Object sender, EventArgs e) in C:\SourceCode\Viper.Net\Viper\EmployerDetail.vb:line
    775"

    Any assistance with this would be very much appreciated!

    Thanks,

    -ldl-


  2. #2
    Larry Leach Guest

    Re: Remoting - very inconsistent behavior - help!


    Date: Tue, 1 May 2001 15:32:19 -0700
    Reply-To: dotnet discussion <DOTNET@DISCUSS.DEVELOP.COM>
    Sender: dotnet discussion <DOTNET@DISCUSS.DEVELOP.COM>
    From: "Larry D. Leach" <larryl@ASIBPI.COM>
    Subject: Re: Remoting - very inconsistent behavior - help!
    Ouch. My bad.

    On the server side, I was using:
    Try
    cmd.Update(ds, "Employer")
    Catch x As Exception
    Throw
    End Try
    However, this provides the information I needed to fix the problem(s):
    Try
    cmd.Update(ds, "Employer")
    Catch x As Exception
    Throw New Exception(x.tostring)
    End Try

    I can't say I understand exactly why the first method did not work, but
    that's OK - I will learn...

    Thanks,

    -ldl-


    "Larry Leach" <Larry@ldlsoftware.com> wrote:
    >
    >Here's the scenario: Winforms, tcp, host process and client process running
    >on same machine, both using channel 8085. Client process sends dataset

    to
    >host process, host saves it to database.
    >
    >Sometimes this works fine, but (very) often (and no rhyme or reason to it
    >that I have been able to deduce) I get an error. Note that the exact same
    >code with the exact same data sometimes works, and sometimes does not.

    Here
    >is the error:
    >
    >"System.Runtime.Serialization.SerializationException: The constructor required
    >by an object implementing ISerializable was not found.
    > at System.Runtime.Remoting.RemotingProxy.CallProcessMessage(IMessageSink
    >ms, Message msg, ArrayWithSize proxySinks)
    > at System.Runtime.Remoting.RemotingProxy.InternalInvoke(Message reqMsg,
    >Boolean useDispatchMessage)
    > at System.Runtime.Remoting.RemotingProxy.Invoke(IMessage reqMsg)
    > at System.Runtime.Remoting.RealProxy.PrivateInvoke(Int32 frame, Int32
    >type)
    > at ViperEmployer.Employer.ValidateAndSave(DataSet ds, ArrayList& Errors)
    >in C:\SourceCode\Viper.Net\ViperHost\ViperEmployer\Employer.vb:line 106
    > at Viper.EmployerDetail.cmdSave_Click(Object sender, EventArgs e) in

    C:\SourceCode\Viper.Net\Viper\EmployerDetail.vb:line
    >775"
    >
    >Any assistance with this would be very much appreciated!
    >
    >Thanks,
    >
    >-ldl-
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center