测试webservice的时候,如果出现这个错误:"The test form is only available for requests from the local machine"

时间:2014-05-10 06:00:47   收藏:0   阅读:2736

测试webservice的时候,如果出现这个错误:"The test form is only available for requests from the local machine"

在web.config中加入以下配置,就可以解决问题。

<system.web>

    <webServices>

        <protocols>

          <add name="HttpGet"/>

          <add name="HttpPost"/>

        </protocols>

    </webServices>

</system.web>

 

也就是说,在默认情况下,是禁止远程调用的.  出于安全问题,这个远程调用被禁止了(不过还是可以在本地调用)。所以出现这个错误

测试webservice的时候,如果出现这个错误:"The test form is only available for requests from the local machine",布布扣,bubuko.com

原文:http://www.cnblogs.com/joeylee/p/3719411.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!