I migrated a site from IIS6 to Windows Server 2008 R2 IIS7.5. It has an asmx web service, which is working fine locally, but returns this 500 error when called from another machine:
Request format is unrecognized for URL unexpectedly ending in /myMethodName
The solution in previous versions is to add this to the web.config for the protocols needed (typically omitting HttpGet for production):
<system.web> <webServices> <protocols> <add name="HttpGet" /> <add name="HttpPost" /> <add name="HttpSoap" /> </protocols> </webServices> </system.web>
This is posted everywhere, including http://stackoverflow.com/questions/657313/request-format-is-unrecognized-for-url-unexpectedly-ending-in
For IIS7.5, this throws a configuration error; I understand this section doesn't belong, but tried it anyway. I also boiled down the asmx call to a simple hello world. I tested with POST also, just to eliminate any issues with GET.
What is the equivalent for IIS7.5? - either web.config format or the UI button to push would be really helpful.
EDIT for answer: From the help below, this DOES work - it goes in system.web just like it says; not system.webserver.