I have a singleton service with this SBA:[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple,UseSynchronizationContext = false,IncludeExceptionDetailInFaults = true,InstanceContextMode = InstanceContextMode.Single)]In the ServiceHost constructor, I pass in an instance of my service class (and not the type of the service class). I then add multiple service endpoints, and call Open() on the service host. NOTE that Open() is called before any of the clients connect.Clients then connect to one of the various endpoints hosted by the service.I randomly see these errors:Details:"System.ServiceModel.FaultException: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher/fault</a:Action><a:RelatesTo>urn:uuid:fddf06c9-e530-44c6-82d2-b5c38c95ea2b</a:RelatesTo><a:To s:mustUnderstand="1">http://www.w3.org/2005/08/addressing/anonymous</a:To></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Receiver</s:Value><s:Subcode><s:Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">The communication object, System.ServiceModel.InstanceContext, cannot be modified while it is in the Opening state.</s:Text></s:Reason><s:Detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"></HelpLink><InnerException i:nil="true"></InnerException><Message>The communication object, System.ServiceModel.InstanceContext, cannot be modified while it is in the Opening state.</Message><StackTrace> at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrImmutable() at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Dispatcher.SingletonInstanceContextProvider.get_SingletonInstance() at System.ServiceModel.Dispatcher.SingletonInstanceContextProvider.GetExistingInstanceContext(Message message, IContextChannel channel) at System.ServiceModel.Dispatcher.ChannelHandler.TryRetrievingInstanceContext(RequestContext request)</StackTrace><Type>System.InvalidOperationException</Type></ExceptionDetail></s:Detail></s:Fault></s:Body></s:Envelope>
Product Version