Monday, February 11, 2013

WCF Service Error :The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state

There are three known possible reason that ,may cause this error 
  1. Server connection is closed/Timed-out and client tried to use the same connection (Proxy) object. Read More... 
  2. Client Proxy Object is closed/Timed-out and application tried to use the same. Read More ...
  3. Insufficient privilege to Service Hosting user account (usually in self hosted console applications)only workaround is to promote the service account to Admin group. 
Stack Trace 
The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state.
 Stack trace
   at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)
   at System.ServiceModel.ServiceHostBase.System.IDisposable.Dispose()
   at FileUtilityHelperService.Program.Main(String[] args) in Y:\Test\Program.cs:line 57


No comments:

Post a Comment