Every time my WCF Host application pool starts, the client making the first WCF call to it always throws "System.Xml.XmlException: There are multiple root elements" All subsequent calls work perfectly.
This exception happens on the consumer/client side of the WCF request. I've tested this for both a full WCF client and a Silverlight client. It's using basicHttpBinding, no security, and aspnetCompatabilityMode = true
It wouldn't be a big deal if the app pool stayed alive, but with the lack of activity, it shuts down and the error happens again when it starts back up.
I should also mention that the app pool sometimes starts from a non-WCF request to another page. But still the first time WCF is called, it still throws this exception on the client side.
Has anyone seen this? I can provide more details if necessary.
Thanks