What is the bare minimum I need to put in web.config to get WCF working with REST? I have annotated my methods with [WebGet], but they are not getting the message.
I discovered that you can add the following to the ServiceHost directive in the *.svc file, and it will automatically setup WebHttpBinding and WebHttpBehavior for you:
Factory="System.ServiceModel.Activation.WebServiceHostFactory"
Note that the namespace is a little different from what is mentioned elsewhere on the web (such as in this MSDN article).
After doing this, I was able to delete the entire section from web.config and everything still worked!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With