Web.config中设置启用webservice远程调试訪问

 在.NET 中已经默认将webservice的远程调试功能关闭。有的时候我们须要远程调试程序的时候,就须要打开此功能我们仅仅需在webservice的项目的中添web.config的<system.web>配置节以下加一下一段配置就OK了,代码例如以下:

<system.web>
<compilation debug="true" />

<!--begin启用webservice远程訪问-->

<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>

<!--end启用webservice远程訪问-->
</system.web>

原文地址:https://www.cnblogs.com/mthoutai/p/6768063.html