I have WCF service to get users from the ActiveDirectory. I receive parameter from the request (user name) and create response with MembershipUser property. from some reason, th
i found the error using the WCF trace. the error was that the XmlSeriazlier couldn't serialize the MembershipUser even though it was serializable because it has SecurityAttribute too. source:
http://support.microsoft.com/kb/326971
Turn on WCF diagnostic tracing to see the error that is causing the connection to be closed. It could originate on the client or the service, so you'll have to turn it on for both sides.
How to turn on tracing: http://msdn.microsoft.com/en-us/library/ms733025.aspx
Using the Service Trace Viewer to read trace logs: http://msdn.microsoft.com/en-us/library/aa751795(VS.85).aspx