roman m roman m - 1 year ago 112
jQuery Question

Request format is unrecognized for URL unexpectedly ending in

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

Answer Source

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