Problem: Silverlight 2 Beta 2 cannot call WCF service and always shows "The remote server returned an unexpected response: (404) Not Found".
Reason: Client cannot access service, there's something wrong with cross domain policy - clientaccesspolicy.xml
![ContractedBlock.gif](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
Save the xml file as clientaccesspolicy.xml, and put it into the location where your WCF service is located.