Re: Remoting client not catching exceptions?
From: Michael Hinkel (newsposting_at_ConsultingServiceSolutions.no.spam.com)
Date: 04/10/04
- Previous message: Arnaud Debaene: "Retrieving the system assigned port of a channel"
- In reply to: Rob: "Remoting client not catching exceptions?"
- Messages sorted by: [ date ] [ thread ]
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
- Previous message: Arnaud Debaene: "Retrieving the system assigned port of a channel"
- In reply to: Rob: "Remoting client not catching exceptions?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|