hi,
I am getting this error in my service when I try to connect a client to it.
I don't understand how the client is trying a singleton mode connection if
the default InstanceContextMode is PerSession. I have not set any
servicebehaviors on my service.
thanks,
-amol
System.ServiceModel.Channels.ConnectionOrientedTransportManager`1.OnGetSingletonMessageHandler(ServerSingletonPreambleConnectionReader
serverSingletonPreambleReader)
System.ServiceModel.Channels.ConnectionDemuxer.OnSingletonPreambleKnown(ServerSingletonPreambleConnectionReader serverSingletonPreambleReader)
System.ServiceModel.Channels.ServerSingletonPreambleConnectionReader.ReadAndDispatch()
System.ServiceModel.Channels.ServerSingletonPreambleConnectionReader.StartReading(OnViaDelegate viaDelegate, TimeSpan timeout)
System.ServiceModel.Channels.ConnectionDemuxer.OnSingletonConnection(IConnection
connection, ItemDequeuedCallback connectionDequeuedCallback, Int64
streamPosition, Int32 offset, Int32 size, TimeSpan timeout)
System.ServiceModel.Channels.ConnectionDemuxer.OnConnectionModeKnownCore(ConnectionModeReader modeReader, Boolean isCached)
server configuration:
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="streamedtcp"
transferMode="StreamedRequest">
</binding>
</netTcpBinding>
</bindings>
<services>
<service name="LogProcessor.EtlLogProcessor"
behaviorConfiguration="metadataSupport">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:9090/LogProcessor"/>
</baseAddresses>
</host>
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<endpoint address=""
binding="netTcpBinding"
name="streamedtcp"
contract= "LogProcessor.IEtlLogProcessor" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="metadataSupport">
<serviceMetadata/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
client configuration (proxy generated with svcutil, but the config was
wrong, so I hand-created this one)
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="streamedtcp"
transferMode="StreamedRequest">
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows"
protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://localhost:9090/LogProcessor"
binding="netTcpBinding"
bindingConfiguration="streamedtcp" contract="IEtlLogProcessor"
name="streamedtcp">
<identity>
<userPrincipalName value="amol.deshpande@flagship.lcl" />
</identity>
</endpoint>
</client>
</system.serviceModel>
Amol Deshpande - 05 Oct 2007 20:08 GMT
> hi,
>
[quoted text clipped - 6 lines]
> thanks,
> -amol
I've narrowed this down (somewhat) to my usage of Streamed mode. If I
change to buffered mode, the apps work fine.
Amol Deshpande - 05 Oct 2007 20:58 GMT
found it. forgot to specify bindingconfiguration in the endpoint.
> > hi,
> >
[quoted text clipped - 9 lines]
> I've narrowed this down (somewhat) to my usage of Streamed mode. If I
> change to buffered mode, the apps work fine.