因 URL 意外地以 结束,请求格式无法识别 的解决方法

今天在学习webservice的时候,碰到这个错误。查了下资料原来是

在webservice的 <system.web> 节点下加入 
<webServices> 
<protocols> 
<add name= "HttpPost" /> 
<add name= "HttpGet" /> 
</protocols> 
</webServices> 
一定要小心"HttpPost" 和"HttpGet"不要有空格

这样就可以了

原文地址:https://www.cnblogs.com/linjiancun/p/1690068.html