none
WebSckets not starting under IIS (question on WCF trace entry) RRS feed

  • Question

  • Hi, I have websockets running, self hosted in a console app under windows 8 pro. Works without a problem. When I implement the equivalent under IIS8, the listen fails with a not so very helpful message in the WCF trace. Websockets are enabled in IIS.

    "Failed to open System.ServiceModel.Channels.WebServerSocket TransportDuplexSessionChannel"

    Some observations:

    1. My project targets .NET45

    2. The System.ServiceModel.Channels is at level 4.0. Also in the selfhosted situation which does work

    3. I can find no class called WebServerSocket in the Channels namespace

    My Web.config:

      

       <

    endpointaddress="/WsPushChannel" 

                      

    binding="customBinding"bindingConfiguration="webSocket"


             

    name="fourthBinding"contract="RetailPlazaServices.IPushChannel"/>      

    My binding config:

       <

    bindingname="webSocket">         

              <

    byteStreamMessageEncoding/>           

              <

    httpTransport>           

                <

    webSocketSettingstransportUsage="Always"                              

                                  

    createNotificationOnConnection="true"/>

              </

    httpTransport>

            </

    binding>

    thx for any help

                      

    binding="customBinding"bindingConfiguration="webSocket"


             

    name="fourthBinding"contract="RetailPlazaServices.IPushChannel"/>      

     

    Thursday, May 23, 2013 6:33 AM

Answers