Hi,I recently ran into a strange problem that I cannot find anything written about yet.
When I run a sample console program with one simple WCF service and call the Close() method on the ServiceHost the following happens - if a WCF client has started a session by connecting and made at least one call to the service):
1) The ServiceHost method Close() gets stuck for about 10 seconds (!?) and then the call returns without any exceptions throw (and the service finally exits nicely).
2) On the client side - if a call to the contract is made while the server side is stuck in the Close method - I immediately get an unexpected System.ServiceModel.FaultException with the description:"The server was unable to process the request due to an internal error.ÃÂ For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
Server stack trace:ÃÂ ÃÂ at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)ÃÂ ÃÂ at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperati
View Complete Post