今天在写一个WebService时,在访问时正常,当我刷新时,出现错误,如下所示:

在网上找了好久,解决办法如下所示:
在Web.config中<configuration>\<system.web>添加配置:
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
原文出处:http://www.cnblogs.com/sunyanjun/articles/2466565.html
本文介绍了一种解决WebService在刷新时出现错误的方法。通过在Web.config文件中的<configuration><system.web>部分添加<webServices>配置,包括允许HttpGet和HttpPost协议,可以有效解决刷新时的访问问题。
5万+

被折叠的 条评论
为什么被折叠?



