Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / October 2007

Tip: Looking for answers? Try searching our database.

Framing mode Singleton is not supported.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amol Deshpande - 05 Oct 2007 02:48 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.