首页 > Web开发 > 详细

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

时间:2017-09-14 09:50:02      阅读:372      评论:0      收藏:0      [点我收藏+]

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

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

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

原文:http://www.cnblogs.com/Lemon-Fei/p/7518844.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!