![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello I have implemented a sink (.net remoting) and I wonder how could I break the process of execution of a remote method. For example, I check a data in CallContext string session = (string)lcc.GetData("www_session"); and if session is incorrect a don't want to call a method in remote object. Instead I want to return to user some information. I tried to throw an exception, but I got an error "exception was unhandled by user code" in server sink. How could I do it? Regards Andrew |
#3
| |||
| |||
|
|
Did you try to throw a serializable exception ? -- Thanks, Jonathan Boivin --- |
#4
| |||
| |||
|
|
Hi It's quit weird situation. I'm throwing a RemotingException and Visual Studio (while debugging) stops at it and says "RemotingException was unhandled by user code". But when I run a compiled server program (exe), and then a client program (exe) and enforce server to throw an exceptions, everything is going alright. Client is catching this RemotingException (with correct description) in a try-catch block! So, VisualStudio doesn't know, that this exception is catched on the client side. How can I enforce him to ignore this situation while debugging?? Regards Andrew "Jonathan Boivin" <djon (AT) cyberinternautes (DOT) net> wrote in message news:OPubByb4GHA.292 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Did you try to throw a serializable exception ? -- Thanks, Jonathan Boivin --- |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |