title: Wcf Push Service in Windows Store App
body: <p>I´m trying to implement a Wcf Duplex Service in my Windows Store Application. In my .NET WPF Application everything works fine. I use a NetTcpBinding.</p>
  
  <p>Here is my Service Config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
  &lt;startup&gt; 
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
  &lt;/startup&gt;
  &lt;system.serviceModel&gt;
  &lt;bindings&gt;
    &lt;netTcpBinding&gt;
      &lt;binding name="myNetTcpBinding" receiveTimeout="00:30:00"&gt;
        &lt;reliableSession enabled="true" inactivityTimeout="24.20:31:23"/&gt;
      &lt;/binding&gt;
    &lt;/netTcpBinding&gt;
  &lt;/bindings&gt;
  &lt;services&gt;
    &lt;service name="CnS.Base.Services.MessageHub.MessageHubService"&gt;
      &lt;endpoint address="" binding="netTcpBinding" bindingConfiguration="myNetTcpBinding" contract="CnS.Base.Services.MessageHub.IMessageHubService"&gt;
        &lt;identity&gt;
          &lt;dns value="localhost"/&gt;
        &lt;/identity&gt;
      &lt;/endpoint&gt;
      &lt;endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/&gt;
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress = "net.tcp://localhost:8655/MessageHubService" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior&gt;
        &lt;serviceMetadata httpGetEnabled="False" httpsGetEnabled="False"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>If i call a Method from the WCF Service i get a ActionNotSupportedException.I figured out that if i set </p>
  
  <pre><code> &lt;reliableSession enabled=false"/&gt;
  </code></pre>
  
  <p>It works fine. But my Problem is now that the Wcf connection is closed to my Windows Store App and i can´t Push Messages to this client.
  Does anyone know a workaround for this Problem?</p>