无法识别 URL 意外结尾的请求格式 [英] Request format is unrecognized for URL unexpectedly ending in

查看:25
本文介绍了无法识别 URL 意外结尾的请求格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是问题 - 在这里发布以供参考:

在使用 WebService 时,出现以下错误:

<块引用>

无法识别以 /myMethodName 结尾的 URL 的请求格式

解决方案

本网站

您只需要将以下内容添加到您的 web.config

<预><代码><配置><system.web><网络服务><协议><add name="HttpGet"/><add name="HttpPost"/></协议></webServices></system.web></配置>

更多信息来自 Microsoft

This is not a question - posting it here for reference:

When consuming a WebService, I got the following error:

Request format is unrecognized for URL unexpectedly ending in /myMethodName

解决方案

Found a solution on this website

All you need is to add the following to your web.config

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

More info from Microsoft

这篇关于无法识别 URL 意外结尾的请求格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆