Results 1 to 4 of 4

Thread: PollingDuplex doesn't work in IIS Express

Threaded View

  1. #4
    Hyperactive Member
    Join Date
    Jan 2010
    Posts
    259

    Re: PollingDuplex doesn't work in IIS Express

    I have never use pollingDuplex, but my I ask why you are using it? It seems harder to use than it is worth.

    Since it is a chat application, when the server receives a message the server should push to the clients, which you can accomplish with simple duplex calls. Just define a callback on the service contract and make the operational contract that should update the clients one way. Then when you add a service reference to the client, it will automatically create the callback interface that you will have to flesh out.

    With this you have a place for the service to "talk" to the client and you can also define events so when the callback gets a message, you raise an event the client is subscribed to.

    If you REALLY want to use the polling, do as lighting suggests and get more detail on the error. Add a Trace to the config file and look it over.

    Code:
    <system.diagnostics>
        <sources>
          <source name="System.ServiceModel" switchValue="Error" propagateActivity="true">
            <listeners>
              <add name="ServiceTraceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\Temp\MyTrace.log" />
            </listeners>
          </source>
        </sources>
      </system.diagnostics>
    Last edited by wakawaka; Jan 8th, 2013 at 05:36 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width