» 网友学堂 » Flash教程 » Silverlight + WCF 常见错误调试方法 -> 查看 2008年10月25日 更新
Silverlight + WCF 常见错误调试方法
作者:wmtxt 发表时间:2008-10-25 08:16 阅读:99次 在百度搜索相关内容

 1、 404 Not Found  a. 检查服务器是否放了 ClientAccessPolicy.xml 文件。内容范例如下:


<?xmlversion="1.0"encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-fromhttp-request-headers="*">
        <domainuri="*"/>
      </allow-from>
      <grant-to>
        <resourcepath="/"include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

  b. 还有可能因为其他原因造成,可以用 http 监听工具查看 response 的内容,看到异常信息。
  2. 调用 WCF 时发现传参丢失,变成 null.
  原因:客户端代理不同步,更新一下服务引用即可。

#Advertisement