System.ServiceModel.ProtocolException: An HTTP Content-Type header is required
Posted on May 19, 2010
The full exception message is “An HTTP Content-Type header is required for SOAP messaging and none was found.”.
If you’re writing a WCF service that returns Entity Framework entities, you may run into this error in your client application. To correct it, open your EDMX file in the service project and change the Lazy Loading Enabled property to False.
It makes sense that related entities can’t be lazy-loaded after the query results have been returned to the client, but the error message doesn’t make that super-obvious.