title: WCF & Silverlight problem
body: <p>I have the following binding configuration in my WCF service that I'm trying to use with Silverlight.</p>
  
  <pre><code>&lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name="basicHTTP" 
               receiveTimeout="00:10:00" 
               sendTimeout="00:10:00" 
               closeTimeout="00:10:00" 
               openTimeout="00:03:00" 
  
               maxBufferSize="100000" 
               maxReceivedMessageSize="100000" 
               transferMode="StreamedResponse"&gt;
  
      &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
          &lt;service behaviorConfiguration="mexBehavior" name="LoadXMLService.XMLOperations"&gt;
              &lt;endpoint address="" 
                binding="basicHttpBinding" 
                bindingConfiguration="basicHTTP" 
                contract="LoadXMLService.IxmlLoad" /&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  </code></pre>
  
  <p>When trying to use the service with the ASP.NET Development server, I get the following response in Fiddler trying to access either crossdomain.xml or clientaccesspolicy.xml:</p>
  
  <p>HTTP 502: Connection to localhost failed.
  Exception Text: No connection could be made because the target machine actively refused it ::1:51547 </p>
  
  <p>I do have crossdomain and clientaccesspolicy.xml in my project at web.config level.</p>
  
  <p>VS2008 tells me its a security error, so I'm thinking something is blocking access to this port?</p>
  
  <p>I'm not sure how to fix this problem?</p>
  
  <p>My clientaccesspolicy looks like this:</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="SOAPAction"&gt;
                          &lt;domain uri="*"/&gt;
                  &lt;/allow-from&gt;
                  &lt;grant-to&gt;
                          &lt;resource path="*" include-subpaths="true"/&gt;
                  &lt;/grant-to&gt;
          &lt;/policy&gt;
      &lt;/cross-domain-access&gt;
  &lt;/access-policy&gt;
  </code></pre>
  
  <p>Can someone help me debug this?</p>
  
  <p>Tony</p>