如何处理此"URL无法识别...";问题? [英] how to deal with this "unrecognized for URL..." problem?
本文介绍了如何处理此"URL无法识别...";问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是链接,正在详细说明,我现在正面临的问题.
This is link which is explaining in detail, the problem i am facing right now.
每当对我的Web服务进行调用时,我都会经常遇到异常.它返回适当的结果,但仍在抱怨URL格式.:-
I am getting a frequent exception whenever a call made to my web services. It returns appropriate results but still complaining about URL format.:-
URL无法识别请求格式意外地以/WebServiceMethod
Request format is unrecognized for URL unexpectedly ending in /WebServiceMethod
那你对男人有什么建议?
So what do you suggest guys?
谢谢.
推荐答案
有一个导致此错误的常见问题,可以通过添加添加的问题很容易地解决
There is quite a common issue that causes this error, that can easily be fixed by adding
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
...到web.config.希望能为您修复它.
...to web.config. Hopefully that fixes it for you.
这篇关于如何处理此"URL无法识别...";问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文