[Mono-list] Throwing custom exceptions in .NET Remoting

paszczi paszczi at go2.pl
Wed Jul 16 16:31:46 EDT 2008


I have a problem when it comes to throwing custom exception in server-side sink. After some validation I want to throw ValidationException this comes to the client as RemotingException with no InnerException and only by the contents of StackTrace I'm able to determine which exception was thrown. This is very ... stupid solution but what I'm doing now is I'm catching such exceptions in client-side sink and rethrow is as appropriate exception. However this becomes impossible when calling methods asynchronously. So I have a simple solution - can I rethrow custom exception instead of RemotingException in the server sink?


Best regards,
Maciej Paszta


More information about the Mono-list mailing list