title: Silverlight Socket Policy Not Working
body: <p>I am trying to implement a data push from a Windows Service to a Silverlight app.  I have created a policy server which sends this policy file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding ="utf-8"?&gt;
  &lt;access-policy&gt;
    &lt;cross-domain-access&gt;
      &lt;policy&gt;
        &lt;allow-from&gt;
          &lt;domain uri="*" /&gt;
        &lt;/allow-from&gt;
        &lt;grant-to&gt;
          &lt;socket-resource port="8400" protocol="tcp" /&gt;
        &lt;/grant-to&gt;
      &lt;/policy&gt;
    &lt;/cross-domain-access&gt;
  &lt;/access-policy&gt;
  </code></pre>
  
  <p>Using a TCP test tool I have verified that when I connect to port 943 and send the request, I receive back that policy file.</p>
  
  <p>Also, using breakpoints in my policy server I have confirmed that the Silverlight app is reaching the service and seemingly the service sends the policy file without error.</p>
  
  <p>I have also confirmed that my data push service is listening correctly on the above port.</p>
  
  <p>However, somehow Silverlight's connection to my data push service is always failing with a WinSock 10013 Access Denied error.</p>
  
  <p>The only thing I can think is that my policy file isn't correct, although as far as I can see it meets the spec.  Let me know if you'd like me to post any of my other code.  Any help would be appreciated.</p>