posted on Wednesday, October 26, 2005 6:59 PM by BayerWhite

The request failed with HTTP status 405: Method Not Allowed

Calling my web service like a do everyday fails with, “The request failed with HTTP status 405: Method Not Allowed.”

SOLUTION :
Check that our IIS Extensions for .wsdl have not been removed from your server! Read on if you want to hear about my experience.

My Project Server WorkFlow application was having some problems today, accessing the PDS WebService it uses as Project Server’s recommended API. I thought it might be useful to post what I found because it has happened to me numerous times and I keep forgetting!

There was some work done on our development server today and I was not made aware which is no big deal because it is development right? Well when I am trying to develop, I need to know so I do not work all day trying to figure out what I did wrong with my code. I call our Infostructure group in another state and ask if any changes have taken place and of course some changes have been made. Once we agreed that any database maintenance is not the issue we focus on what might have changed to IIS since the error is IIS based. Once I had heard that a tool was used to change the sites extensions I knew we had a contender.

Quick instructions :

  1. Open IIS
  2. Right click on your site and select properties
  3. Select the ‘Home Directory’ Tab
  4. On the bottom right, click the ‘Configuration’ button
  5. Click the add button
  6. Execute path for me was "C:\Program Files\Common Files\MSSOAP\BINARIES\SOAPIS30.DLL" but you can browse
  7. Extension is “.WSDL”
  8. Limit To "Get,Post"
  9. Check “Script Engine” and “Verify That File Exists”
  10. Click “OK” and it should work!

Comments

# re: The request failed with HTTP status 405: Method Not Allowed

Friday, August 25, 2006 7:26 AM by shishir
Your a life saver!!

# re: The request failed with HTTP status 405: Method Not Allowed

Tuesday, November 14, 2006 10:34 AM by Vince
I wanted to let you also know that this issue came up for me but was solved by following this MS article:

http://support.microsoft.com/kb/910085/en-us

# re: The request failed with HTTP status 405: Method Not Allowed

Monday, September 08, 2008 2:37 PM by Greg
Thought i would post my idiotic mistake that resulted in this error for me. Hoping it might help someone.

Got a new wsdl from the company running the webserver, generated the .cs file with wsdl.exe, put that code in my project, kept getting that error even tho nothing should have changed or caused a problem. Ended up being i totally forgot to change the default url in the generated file and that caused it to give a 405 error (to my credit, it should have given 404).

# re: The request failed with HTTP status 405: Method Not Allowed

Wednesday, September 17, 2008 10:19 PM by ywzclcf

# re: The request failed with HTTP status 405: Method Not Allowed

Thursday, October 02, 2008 1:16 AM by SamOnes
Did you hear? Russian agressor attacks USA...
More info here: hotusanewx.blogspot.com

SHOKED!!