赵跳跳

导航

The test form is only available for requests from the local machine

使用浏览器测试Web服务时出现提示“The test form is only available for requests from the local machine.”的解决办法


在Web服务项目中的Web.config文件中添加如下配置即可:

<system.web>
    <webServices>
        <protocols>
          <add name="HttpGet"/>
          <add name="HttpPost"/>
        </protocols>
    </webServices>
</system.web>

posted on 2018-09-15 10:26  赵跳跳  阅读(172)  评论(0编辑  收藏  举报