I want to add the ability to see the server exception on the client side.
If the server got some exception => i want to show some MessageBox on the client side that will show the exception message ..
How can i do it ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, you need to enable your WCF service to return detailed error information. This is OFF by default, for security reasons (you don’t want to tell your attackers all the details of your system in your error messages…)
For that, you need to create a new or amend an existing service behavior with the
<ServiceDebug>behavior:Secondly, you need to change your
<service>tag to reference this new service behavior:And third: you need to adapt your SL solution to look at the details of the errors you’re getting back now.
And lastly: while this setting is very useful in development and testing, you should turn those error details OFF for production – see above, for security reasons.