I have put the attribute [FaultContract(typeof(ExceptionDetail))]
for my operation contract. When I am trying to add the service to a client application, I get this error - "Custom tool error: Failed to generate code for the service reference 'ServiceReference1'. Please check other error and warning messages for details."
But when I comment out the FaultContract Attribute, I am able to add the wcf service reference th' my client app.
I had the same problem few minutes ago. It was due to the absence of a default constructor. Also remember that all properties must have public get/set accessors.