Solution: When you try to throw an exception back to client using the FaultContract() attribute, the web service doesn't send the fault message to the client. Instead it will give you an exception saying 'the creator of the fault did not specify a Reason'. If you are getting the same exception then please follow the steps mentioned below before you come to any conclusion regarding the code that you have written.
- Open your project(web service) in Visual Studio.
- Click on Debug in the menu bar.
- Then click on Exceptions...
- Uncheck the checkbox next to Common Language Runtime Exceptions, under the category User-Unhandled.
- Click OK and now try to run your project.
No comments:
Post a Comment