WebService 出现因 URL 意外地以“/HelloWorld”结束,请求格式无法识别

要在web.config文件中的 <configuration> <system.web> 节点下加入:

<webServices>
    <protocols>
        <add name= "HttpPost" />
        <add name= "HttpGet" />
    </protocols>
</webServices>
注意末尾空格,在 " / 之间,否则此配置不能生效

 

posted @ 2016-01-23 11:48  xfyn  阅读(161)  评论(0编辑  收藏  举报