Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight WCF netTcpBinding problem
    primarykey
    data
    text
    <p>Trying to call a WCF with a netTcpBinding via Silverlight, I am getting the error:</p> <p>"TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions.. This could be due to attempting to access a service in a cross-domain way while the service is not configured for cross-domain access. You may need to contact the owner of the service to expose a sockets cross-domain policy over HTTP and host the service in the allowed sockets port range 4502-4534."</p> <p>My WCF service is hosted in IIS7, bound to:</p> <p><a href="http://localhost.myserivce.com" rel="nofollow noreferrer">http://localhost.myserivce.com</a> on port 80 and net.tcp on port 4502</p> <p>I can see <a href="http://localhost.myserivce.com/myservice.svc" rel="nofollow noreferrer">http://localhost.myserivce.com/myservice.svc</a> if I browse to it (my hosts file is pointing this domain to localhost). I can also see <a href="http://localhost.myserivce.com/clientaccesspolicy.xml" rel="nofollow noreferrer">http://localhost.myserivce.com/clientaccesspolicy.xml</a>:</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 http-request-headers="*"&gt; &lt;domain uri="*" /&gt; &lt;/allow-from&gt; &lt;grant-to&gt; &lt;socket-resource port="4502-4534" protocol="tcp" /&gt; &lt;/grant-to&gt; &lt;/policy&gt; &lt;/cross-domain-access&gt; &lt;/access-policy&gt; </code></pre> <p>What am I doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload