Doubt in Exception handling

  • Thread starter Thread starter Baskar RajaSekharan
  • Start date Start date
B

Baskar RajaSekharan

Hi,

In c# , If Client and the Server are in different machine, Can i
through an Exception from the Server, so that the client can catch the
Exception and do the appropriate action? Please give me some site address
or any article related to this.


Regards,
R.Baskar
 
Hi,
You should be able to. Remoting architecture actually takes care of this and
the exception is rethrown at the client, though due to security reasons you
may not be able to pin down the exact location of the exception at the
client.(Pls try having a custom exception class logging the exceptions at
its constructor at the server side.)

HTH
Krishnan
 
Back
Top