HTTP Status 405: Method Not Allowed
-
Monday, May 24, 2010 1:06 PM
I have 3 parts in the system:
1. Web Site - "WebSite"
2.Web Service - "MyService"
3. Other Web Service - "OtherService" - this service has a web service method "MyMethod"
The "WebSite" calls "MyService" using HTTP Post and "MyService" calls "OtherService.MyMethod" using HTTP Post too and returns its response back.
When i'm using "WebSite", i get : "HTTP Status 405: Method Not Allowed" Error when "MyService" calls "OtherService.MyMethod".
The funny thing is that when i don't use the "WebSite" but "Browse" "MyService" and input the same data that the "Website" pass to it and execute it , it works!
Why does "OtherService.MyMethod" returns an HTTP Error 405 when i use the "WebSite" and works great when i use the "MyService" manually?
All Replies
-
Monday, May 24, 2010 1:32 PM
Messages seen in a client application or browser that indicate 3XX or 4XX are always server side issues. They could be caused by the client (incorrect format, incorrect post data, incorrect request headers) but the server is telling you "Not Acceptable" so, a suggestion may be to get onto the server and look for some logging as to what it's complaining about.
Javaman- Marked As Answer by Bin-ze ZhaoModerator Monday, May 31, 2010 5:44 AM
-
Friday, May 28, 2010 8:59 AMModerator
Hi,
Check if your scenario matches these documents listed bellow:
http://www.c-sharpcorner.com/uploadfile/mahesh/40507312006135546pm/405.aspx
http://bytes.com/topic/net/answers/425854-http-status-405-method-not-allowed
If not, the best way to do is to enable your web service debug to see what 's going on.
http://msdn.microsoft.com/en-us/library/aa291236(VS.71).aspx
Thanks
Binze
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Marked As Answer by Bin-ze ZhaoModerator Monday, May 31, 2010 5:43 AM

