Groups | Blog | Home
all groups > dotnet distributed apps > october 2007 >

dotnet distributed apps : Framing mode Singleton is not supported.



Amol Deshpande
10/4/2007 6:48:01 PM
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>
Amol Deshpande
10/5/2007 12:08:00 PM


[quoted text, click to view]

I've narrowed this down (somewhat) to my usage of Streamed mode. If I
Amol Deshpande
10/5/2007 12:58:01 PM
found it. forgot to specify bindingconfiguration in the endpoint.

[quoted text, click to view]
AddThis Social Bookmark Button