how to deal with this “unrecognized for URL…” problem?

≯℡__Kan透↙ 提交于 2020-01-06 07:09:21

问题


This is link which is explaining in detail, the problem i am facing right now.

I am getting a frequent exception whenever a call made to my web services. It returns appropriate results but still complaining about URL format.:-

Request format is unrecognized for URL unexpectedly ending in /WebServiceMethod

So what do you suggest guys?

Thanks.


回答1:


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>

...to web.config. Hopefully that fixes it for you.



来源:https://stackoverflow.com/questions/3523507/how-to-deal-with-this-unrecognized-for-url-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!