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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Doubt 2
Question about exception handling best practice 7
Exception handling 20
Throwing exception from web service .. catching by client 4
doubt 1
Doubt 3
Handling exceptions 37
Doubt 5

Back
Top