Re: Remoting client not catching exceptions?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michael Hinkel (newsposting_at_ConsultingServiceSolutions.no.spam.com)
Date: 04/10/04

  • Next message: magnus: "Re: Merging datasets"
    Date: Sat, 10 Apr 2004 18:28:52 +0200
    
    

    Monitor the communicated data with a tcp tracer (e.g. TcpTrace by
    http://www.pocketsoap.com/tcpTrace/) on the client- and (!) server-side, to
    check if your exceptions get transmitted. Some weeks ago I observed, that if
    client and server are hosted by different machines, the exception got
    filtered at the server's boundary. TcpTrace on the server showed the
    exception, whereas TcpTrace on the client never saw any of this. NB:
    internals like a stacktrace shouldn't be published to clients, because of
    security reasons.
    If you are doing serverside authentication, you seem to have some custom
    authentication sinks - in this case you can simply use the response header
    to transfer status informations to the client (e.g. "AccessGranted" vs.
    "AccessDenied").

    Regards,
    Michael

    _________________________________________________
                              Technology Consulting
                     Software and Web Development
                     Client/Server Technologies

    http://www.ConsultingServiceSolutions.com

    "Rob" <mailinglist@globalaxcess.biz> schrieb im Newsbeitrag
    news:9ed9f1f8.0404080058.117bb6ec@posting.google.com...
    > Hi,
    >
    > I have a remoting server that throws exceptions to clients under
    > certain conditions. I have put try/catches around all the relevant
    > areas of code on the client side. The client never, however, seems to
    > catch exceptions. Even when I induce an exception generating
    > condition. I know the exceptions are being thrown on the server side
    > because client access and other things are denied to the client. Both
    > server and client are release builds. The client is a MS Office
    > plugin.
    >
    > I was getting exceptions when both client and server where on the same
    > machine. In a distributed environment, however, this does not seem to
    > be the case. All my exceptions are marked as serializable (using the
    > [Serializable] attribute) and I have implemented the ISerializable
    > interface as well.
    >
    > Any ideas?
    >
    > Thanks


  • Next message: magnus: "Re: Merging datasets"

    Relevant Pages

    • Re: [DB4O] Locking, gleichzeitiger Lesezugriff aus zwei VMs
      ... und dann als Client verbinden. ... Server läuft.. ... noch hatte ich einen Kontruktor der Exceptions ... ;) ausserdem scheint mir dein query im ...
      (de.comp.lang.java)
    • Re: Filter exceptions before marshall
      ... WCF applies the remoting steps regardless of the location of the client or the server. ... So like you mentioned it's a completely seamless approach with the big drawback of server errors in the remoted environment being propagated back to the client. ... create a wrapper method that catches the relevant exceptions (or all ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: Filter exceptions before marshall
      ... What I failed to mention was that in WCF you can define multiple endpoints for a server object. ... Then, each client has in its config file, the correct service definition that it needs to use. ... The implementation inside the service/client is the same where ever it is deployed and WCF manages the comms for you seamlessly. ... exceptions like this: ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: Filter exceptions before marshall
      ... throw new ServerException("Sorry dude the server wasn't able to process...... ... environment being propagated back to the client. ... exceptions like this: ... public void MyMethod() { ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: What doesnt lend itself to OO?
      ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
      (comp.object)