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

Read More