2010-08-19 78 views
0

This is link这是详细解释我现在面临的问题。如何处理这个“无法识别的URL ...”问题?

每次打到我的Web服务时,都会收到一个频繁异常。它返回相应的结果,但仍抱怨URL format.:-

请求格式是无法识别为URL 在 /WebServiceMethod

所以,你有什么建议人意外结束?

谢谢。

+0

可能重复的[请求格式无法识别的URL意外结束](http://stackoverflow.com/questions/657313/request-format-is-unrecognized-for-url-unexpectedly-ending-in) – Fenton 2012-01-26 13:26:28

回答

0

有相当导致此错误的一个常见问题,可以很容易地通过添加

<configuration> 
    <system.web> 
    <webServices> 
     <protocols> 
      <add name="HttpGet"/> 
      <add name="HttpPost"/> 
     </protocols> 
    </webServices> 
    </system.web> 
</configuration> 

...到web.config中固定。希望能为你解决它。

+0

谢谢..测试它.... – Jango 2010-08-19 16:11:43