Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):

      <add name="HttpGet" />
      <add name="HttpPost" />
      <add name="HttpSoap" />

This is posted everywhere, including

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

EDIT for answer: From the help below, this DOES work - it goes in system.web just like it says; not system.webserver.

share|improve this question
up vote 1 down vote accepted

If you are getting "configuration error" when making the above entries in your IIS 7.5 then you need to look at the error carefully.

I have IIS 7.5 and I just tried adding the same configuration using Configuration Editor and it made an entry in the web.config file under the Default Web Site.

If you can post the exact error from IIS logfile or take a FREB trace, that will help isolate the issue much better.

share|improve this answer
Got it, thanks! That was enough of a hint. The error was 500.19 The requested page cannot be accessed because the related configuration data for the page is invalid. I didn't dig deeper since it now works. The above configuration does work - I didn't realize there still is a system.web section (nothing was in it at the time), so I was putting it in system.webserver. I turned off custom errors coincidentally, which created the system.web section, so I noticed it. Put the config above in system.web, and it works. Thanks again. – goodeye May 25 '10 at 16:03
Good I could help. – Vivek Kumbhar May 25 '10 at 16:43

Please run the following command on your server: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –iru

This will re-configure scripts for ASP.NET against a specific .NET version.

share|improve this answer
Why? What is this supposed to do? – Michael Hampton May 26 '14 at 0:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.