问题
I currently have a deployed wcf application on iis 7.5, windows server 2008 R2. I am using a asp 4.0 mvc which calls the different methods of the wcf web service application.
When I make an ajax GET request to any method in the wcf application I get the expected json result and all works fine. However, when I make a POST request I get the 405 method not allowed error.
I checked the "Handle Mappings" in iis and all the .svc mappings allow ALL Verbs.
1. My svc-ISAPI is mapped to aspnet_isapi.dll.
- My svc-Integrated is mapped to "System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
All the mappings seem to be correct.
I am not sure why my POST will not work.
thanks, Matt
来源:https://stackoverflow.com/questions/6670898/web-service-call-returns-405-method-not-allowed-error