Web service call returns 405 method not allowed error

南楼画角 提交于 2019-12-24 01:27:29

问题


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.

  1. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!