ActionNotSupported error when a WCF Service is created at runtime

If you don't need specific WCF features or you have mandate to use WCF you should consider using different stack for REST based services. For example ASP.NET web API or ServiceStack. It looks like a lot of work to do a simple REST call.

If you turn on service diagnostics this might help diagnosing the problem. You can see this SO for detailed instructions

You can also refer to this SO: WCF - ContractFilter mismatch at the EndpointDispatcher exception for some ideas.


My problem has been solved when I added WebHttpBehavior to endpoint

httpEndpoint.Behaviors.Add(new WebHttpBehavior());