1、 404 Not Found

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

<?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>

b. 还有可能因为其他原因造成,可以用 http 监听工具查看 response 的内容,看到异常信息。


2. 调用 WCF 时发现传参丢失,变成 null.

  原因:客户端代理不同步,更新一下服务引用即可。



相关文章:

  • 2022-01-18
  • 2021-11-23
  • 2022-01-23
  • 2021-07-06
  • 2022-01-02
  • 2021-12-19
  • 2021-03-31
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-12-04
  • 2021-11-13
相关资源
相似解决方案