roman m roman m - 1 month ago 10
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

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