天天看点

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>