在部署webservice过程中遇到了两个问题
问题一:
部署后,本机打开调试窗口出错,错误:您试图从目录中执行 CGI、ISAPI 或其他可执行程序,但该目录不允许执行程序。
办法:站点目录或者是虚拟目录的可访问权限勾选允许脚本执行和允许ISAPI访问选项。
问题二:
远程无法访问
办法:在webservice中的配置文件web.config中System.web节点下添加如下配置:
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
上传大文件出错
办法:
<httpRuntime maxRequestLength="102400" executionTimeout="360"/>
maxRequestLength 单位为KB
executionTimeout 单位为S(秒)