WCF Service Returning “Method Not Allowed”

前端 未结 9 1598
庸人自扰
庸人自扰 2020-11-27 05:04

In the process of developing my first WCF service and when I try to use it I get \"Method not Allowed\" with no other explanation.

I\'ve got my interface set up wit

9条回答
  •  鱼传尺愫
    2020-11-27 05:34

    If you are using the [WebInvoke(Method="GET")] attribute on the service method, make sure that you spell the method name as "GET" and not "Get" or "get" since it is case sensitive! I had the same error and it took me an hour to figure that one out.

提交回复
热议问题