当项目中包含一个web services , 调用时会遇到这个错误
Request format is unrecognized for URL unexpectedly ending in ....
引起这个错误的原因是:
Add the following to
web.config since GET and POST are disabled by default in ASP.NET 2.0 and greater
所以要在web.config中加入一些配置才能enable Get and POST
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>

本文详细介绍了在ASP.NET项目中遇到Webservices调用错误Request format is unrecognized for URL unexpectedly ending in...时,如何通过在web.config文件中添加特定配置来解决此问题。具体步骤包括启用HTTP GET和POST请求,并提供了完整的配置示例。

1345

被折叠的 条评论
为什么被折叠?



