I have created WCF web service and hosted as a window Service . I have tested the WCF web Service as a WCF Test Client and its working .Even after hosting as window service copy the url and tried in browser also working correctly but when i consume and added as a service reference i got error as "The communication object, System.ServiceModel.ChannelFactory`1[WCFClient.GSService.IGAService], cannot be used for communication because it is in the Faulted state."
ANYONE HELP ME
Tuhin PaulPosted Mar 15, 2023, 6:45 AM
Hello Drt,
I think there is a problem with the communication channel between your client application and the WCF service.
You can try :
1. Try the Windows service hosting the WCF service is running and has the correct endpoint configuration.
2. Check if any exceptions or errors are being thrown on the server side when the client is trying to connect. You can do this by adding logging or tracing to your WCF service.
3. Make sure the binding configuration used by the client matches the binding configuration used by the server. Check for any mismatches in the security settings or other configurations.
4. Try restarting the client application and/or the WCF service to see if the issue resolves itself.
Anandu G NathPosted Dec 22, 2023, 3:54 AM
@Drt
Implement try-catch blocks around WCF service calls to capture CommunicationExceptions. Log these exceptions to identify the cause of the fault.