Configure IIS7.5 to allow calls to asmx web services.
        Posted  
        
            by goodeye
        on Server Fault
        
        See other posts from Server Fault
        
            or by goodeye
        
        
        
        Published on 2010-05-25T15:21:52Z
        Indexed on 
            2010/05/25
            15:33 UTC
        
        
        Read the original article
        Hit count: 1497
        
Hi, 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.
Thanks, Bob
© Server Fault or respective owner