Request format is unrecognized for URL unexpectedly ending in

roman m picture roman m · Mar 18, 2009 · Viewed 171.5k times · Source

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

roman m picture roman m · Mar 18, 2009

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