1. Download and open the WCF application here.
2. Enable message logging in the host application
3. In the client application, handle CommunicationException, TimeOutException, and FaultException in the correct order.
4. Use finally block to check if the client channel has entered a faulted state if it has then the abort the client and create a new instance of the client if the client is required again.
5. Enable reliable session by changing the app.config of the service host project.
7. Override OnOpening() method to add an endpoint with basicHttpBinding and to enable metadata so that Metadata is always enabled with one endpoint.
8. Update the service host project to use the custom host class created above.
9. Update client reference and test the whole application.
10 Save and submit as a single zip file.
Comments
Post a Comment